Added angular-seed to public folder

This commit is contained in:
Sahat Yalkabov
2013-11-13 16:05:26 -05:00
parent 06b777cce9
commit 92a7f6159e
41 changed files with 144 additions and 557 deletions

View File

@@ -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'});
}]);