Hi,
I’m starting with angularjs and Iconic and I have one simple question…
I have a controller which get some data from a remote json, I want to change the nav bar title with a value from that json.
function PostDetailController($scope, $stateParams, $http){
$scope.title = 'BLA';
$http.get('/jsons/post.json').success(
function(data, status, headers, config) {
$scope.post = data;
$scope.title = data.title;
}
);
}
The title is always BLA
Any help ? Thanks!