ng-bind
以外でng-app
使用ng-controller
できるのはなぜ$rootScope.variable
ですか?
faraWorkspaceApp.run(function ($rootScope, $location, $state) {
$rootScope.$on('$stateChangeSuccess', function (e, toState, toParams
, fromState, fromParams) {
$rootScope.pageTitle = toState.pageTitle;
});
});
<span ng-bind="pageTitle"></span>
<div ng-app>
</div>