https://github.com/ngbp/ngbpから NgBoilerPlate をダウンロードしました。それをテンプレートとして使用して、Web サイトを構築します。流れは次のとおりです。
index.html
<li ui-sref-active="active">
<a href ui-sref="home">
<i class="fa fa-home"></i>
Home
</a>
</li>
app.js
angular.module( 'ngBoilerplate', [
'templates-app',
'templates-common',
'ngBoilerplate.home',
'ngBoilerplate.about',
'ui.router'
])
ホーム.js
angular.module( 'ngBoilerplate.home', [
'ui.router',
'plusOne'
])
/**
* Each section or module of the site can also have its own routes. AngularJS
* will handle ensuring they are all available at run-time, but splitting it
* this way makes each module more "self-contained".
*/
.config(function config( $stateProvider ) {
$stateProvider.state( 'home', {
url: '/home',
views: {
"main": {
controller: 'HomeCtrl',
templateUrl: 'home/home.tpl.html'
}
},
data:{ pageTitle: 'Home' }
});
})
homeTab がクリックされると、タイトルはHome|ngBoilerplateとして表示されます
タイトルから|ngBoilerPlateを取り除く方法。
ありがとう