I have this plunker: http://plnkr.co/edit/FnCTfZf8RVBx2WVscyK8?p=info
if I change the line/s(around 23)
app.controller('MainCtrl', function($scope) {
$scope.links = [...];
});
to
app.controller('MainCtrl', function ($scope, $http) {
$http.get('data.json')
.success(function(data, status, headers, config) {
$scope.links = data;
});
I don't see any data.
I guess this happens because the data is set after the ui has already been rendered.
How do I make the data binding work corectlly?
Thanks