Added angular-seed to public folder
This commit is contained in:
@@ -1,4 +1,16 @@
|
||||
window.app = angular.module('mean', ['ngCookies', 'ngResource', 'ui.bootstrap', 'ui.route', 'mean.system', 'mean.articles']);
|
||||
'use strict';
|
||||
|
||||
angular.module('mean.system', []);
|
||||
angular.module('mean.articles', []);
|
||||
|
||||
// Declare app level module which depends on filters, and services
|
||||
angular.module('myApp', [
|
||||
'ngRoute',
|
||||
'myApp.filters',
|
||||
'myApp.services',
|
||||
'myApp.directives',
|
||||
'myApp.controllers'
|
||||
]).
|
||||
config(['$routeProvider', function($routeProvider) {
|
||||
$routeProvider.when('/view1', {templateUrl: 'partials/partial1.html', controller: 'MyCtrl1'});
|
||||
$routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: 'MyCtrl2'});
|
||||
$routeProvider.otherwise({redirectTo: '/view1'});
|
||||
}]);
|
||||
|
Reference in New Issue
Block a user