I am facing an issue with angularJS, basically I trying to print the "img" child of below, but it does not print anything and does not even show an error. I have followed many tutorials of angularJS, but I am stuck at this point. Any ideas on what's can be wrong ?
Here is the angularJS code :
app.controller("Deals", function($scope){
$scope.getDeal = function() {
[
{
"name":"Joe"
"img":"https://i.ytimg.com/vi/NsvH9ye1ycU/mqdefault.jpg"
}];}
});
Calling from HTML :
<ion-content ng-controller="Deals">
<h6>{{getDeal.img}}</h6>
</ion-content>
The result is blank; however I am willing to get the url of that image.