I have been trying AngularJS for a experimental project and I came along with this problem. In my html I want to display a list of items
Index.html<
Well it looks perfect but you can use $apply like this.
$apply
datModule.controller('datlist', function ($scope, datfactory){ $scope.$apply(function() { $scope.items = datfactory.getlist(); }); });