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.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/client/js/app.js b/client/js/app.js
index e69de29..7fedb32 100644
--- a/client/js/app.js
+++ b/client/js/app.js
@@ -0,0 +1,18 @@
+
+// Declare main app
+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