I call a my controller with $routeProvider like this:
$routeProvider
.when('/home', {
templateUrl: "partials/main.html",
controller: "AppCtrl"
});
So the focus of $scope
in the controller will change only the content of partials/main.html
.
I would need to change {{status}}
in index.html, but it won't change if I do $scope.status = 'ready';
in the controller, it will change only if it was in main.html.
How can I make this work ?
Thank you very much.