Skip to content

Using Angular Controllers: Local images not showing #9

@mperez-bluechip

Description

@mperez-bluechip

Tried ng-src="img/{{item.shortname}}_tn.jpg" and src="img/{{item.shortname}}_tn.jpg" with no luck. Could this be an Angular issue, possibly in ionic.bundle.js?

In app.js:

.controller('ListController', ['$scope', '$http', function($scope, $http){
$http.get('js/data.json').success(function(data){
$scope.artists = data;
});
}]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions