mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
29 lines
854 B
JavaScript
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"
|
|
})
|
|
});
|
|
;
|