Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Angular Controllers: Local images not showing #9

Open
mperez-bluechip opened this issue Jul 10, 2016 · 1 comment
Open

Using Angular Controllers: Local images not showing #9

mperez-bluechip opened this issue Jul 10, 2016 · 1 comment

Comments

@mperez-bluechip
Copy link

mperez-bluechip commented Jul 10, 2016

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;
});
}]);

@mperez-bluechip
Copy link
Author

Fixed!

Change
$scope.artists = data;
To
$scope.artists = data.artists;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant