app realization
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
// Declare app level module which depends on views, and core components
|
||||
angular.module('myApp', [
|
||||
'core',
|
||||
'ngRoute',
|
||||
'myApp.view1',
|
||||
'myApp.view2',
|
||||
'myApp.file-service'
|
||||
]).config(['$locationProvider', '$routeProvider', function ($locationProvider, $routeProvider) {
|
||||
$locationProvider.hashPrefix('!');
|
||||
|
||||
$routeProvider.otherwise({redirectTo: '/view1'});
|
||||
}]);
|
||||
Reference in New Issue
Block a user