Files
codeql/javascript/ql/test/library-tests/frameworks/AngularJS/routes/tst.js
2018-08-02 17:53:23 +01:00

19 lines
475 B
JavaScript

angular.module('myApp')
.controller('myController1', function mc1($scope) {
})
.config(function($routeProvider) {
$routeProvider
.when('somePath', {
controller: function mc3($scope) {
}
})
.otherwise({
controller: function mc4($scope) {
}
})
.when('somePath', {
controller: 'myController1'
})
});
;