Check out my plunker example here
When I modify the code around line 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'm not able to see any data being displayed.
I believe this is because the data is loaded after the UI has already been rendered.
How can I ensure proper data binding in this scenario?
Appreciate any help or suggestions.