I am using a image slider called ninja slider, which currently works fine using the following html
<div id='ninja-slider'>
<ul>
<li><div data-image="https://pbs.twimg.com/profile_banners/402882947/1414953548/1500x500" href="http://www.menucool.com"></div></li>
</ul>
</div>
However, when I am trying to get the data to come from a web service, it is not playing ball (not displaying any of the data) but I don't know where I am going wrong
<div id='ninja-slider'>
<div ng-controller="featCtrl">
<ul>
<li> <div ng-repeat="feat in featured" index="{{$index}}" data-image="{{feat.heder_img}}" href="http://www.menucool.com"></div></li>
</ul>
</div>
</div>
With the following in my app.js file
.controller('featCtrl', function($scope, $http)
{
$http.get('http://liverpool.li/api/feat/home').
success(function(data, status, headers, config)
{
$scope.featured = data.featured;
}).
error(function(data, status, headers, config)
{});
})
Am I doing it completely wrong? thanks