aboutsummaryrefslogtreecommitdiffstats
path: root/app/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/js/app.js')
-rw-r--r--app/js/app.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/js/app.js b/app/js/app.js
new file mode 100644
index 0000000..795f1db
--- /dev/null
+++ b/app/js/app.js
@@ -0,0 +1,10 @@
+'use strict';
+
+
+// Declare app level module which depends on filters, and services
+angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
+ config(['$routeProvider', function($routeProvider) {
+ $routeProvider.when('/view1', {template: 'partials/partial1.html', controller: MyCtrl1});
+ $routeProvider.when('/view2', {template: 'partials/partial2.html', controller: MyCtrl2});
+ $routeProvider.otherwise({redirectTo: '/view1'});
+ }]);