summaryrefslogtreecommitdiff
path: root/client/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/app.js')
-rw-r--r--client/js/app.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/client/js/app.js b/client/js/app.js
index 63ecfef..7fedb32 100644
--- a/client/js/app.js
+++ b/client/js/app.js
@@ -1,3 +1,18 @@
// Declare main app
-var mainApp=angular.module("mainApp",[]); \ No newline at end of file
+var mainApp=angular.module("mainApp",['ngRoute']);
+
+
+mainApp.config(['$routeProvider', function($routeProvider){
+ $routeProvider.
+ when('/home',{
+ templateUrl: 'partials/home.html',
+ controller: 'homeCtrl'
+ }).
+ when('/network',{
+ templateUrl: 'partials/network.html',
+ controller: 'networkCtrl'
+ }).otherwise({
+ redirectTo: '/home'
+ });
+}]); \ No newline at end of file