変数とか初期化したいけど、テンプレートは使いましたいときはこうしとく。
angular
.module('App',['ngRoute'])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'sampleTemplate',
controller: 'MainCtrl'
})
.when('/routeA', {
templateUrl: 'sampleTemplate',
controller: 'MainCtrl'
})
.when('/routeB', {
templateUrl: 'sampleTemplate',
controller: 'MainCtrl'
})
.otherwise({
redirectTo: '/'
});
});