From 9b142c6dc7d5736acc45142a5d42c4511fc49edc Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Mon, 2 Apr 2012 02:13:32 -0400 Subject: new angular branch --- app/js/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/js/app.js (limited to 'app/js/app.js') 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'}); + }]); -- cgit v1.2.3-70-g09d2