Files
2018-08-02 17:53:23 +01:00

29 lines
854 B
JavaScript

angular.module('myApp')
.controller('myController1', function mc1($scope) {
})
.controller('myController2', function mc2($scope) {
})
.config(function($routeProvider) {
$routeProvider
.when('somePath', {
controller: function mc3($scope) {
},
templateUrl: "template3.html"
})
.otherwise({
controller: function mc4($scope) {
},
templateUrl: "template4.html"
})
.when('somePath', {
controller: 'myController1',
templateUrl: "template1.html"
})
.when('somePath', {
controller: 'myController1',
templateUrl: "template1.html",
controllerAs: "mc1"
})
});
;