I have angular app that uses ui-router and I have set service and directive but can't display json data. It works fine without directive when I just display it in main template (home.html). My controller looks like this:
app.controller('homeCtrl', ['$scope', 'homeList', function ($scope, homeList) {
homeList.get().then(function (homeList) {
$scope.homeList = homeList;
$scope.homeList.name = 'Home list';
});
}]);
and when I do {{homeList.name}} it displays correctly but ng-repeat in directiveTemplate.html doesn't display data from json.
Here is plunker http://plnkr.co/edit/GTfLFQepFcXzXYcIHnP0
There are no errors in console so I can't figure out what I am doing wrong.
Thank you.