aboutsummaryrefslogtreecommitdiffstats
path: root/alias-angular/app/js/app.js
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2012-04-02 02:37:41 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2012-04-02 02:37:41 -0400
commit28a5d4fbf8a42649360e9d1e1206c062e0a5ce8d (patch)
tree0c0842aab6ca8259f14fc9b760eb742098fa1aaa /alias-angular/app/js/app.js
parent0a74881345b16b39487493364bb0c24f8cc47967 (diff)
downloadalias-28a5d4fbf8a42649360e9d1e1206c062e0a5ce8d.tar.gz
regorg files
Diffstat (limited to 'alias-angular/app/js/app.js')
-rw-r--r--alias-angular/app/js/app.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/alias-angular/app/js/app.js b/alias-angular/app/js/app.js
new file mode 100644
index 0000000..795f1db
--- /dev/null
+++ b/alias-angular/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'});
+ }]);