summaryrefslogtreecommitdiff
path: root/client/js/app.js
diff options
context:
space:
mode:
authorjosselin <josselin@serverpc.home>2016-01-25 22:12:25 +0100
committerjosselin <josselin@serverpc.home>2016-01-25 22:12:25 +0100
commit793a61475e0045383b23ddb2357a9e632bc8679c (patch)
treec641e37cd8ec87e6c6a61a8a27c90f1b21b518f8 /client/js/app.js
parent5f34f504b08b34aad35d232d3ea35f2b4b70b070 (diff)
parent81d5c2a6464771c9a180d0214706a2f65f0b1d18 (diff)
Merge branch 'master' into Eole
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