summaryrefslogtreecommitdiff
path: root/client/js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js')
-rw-r--r--client/js/app.js8
-rw-r--r--client/js/controllers/image/image.js9
2 files changed, 15 insertions, 2 deletions
diff --git a/client/js/app.js b/client/js/app.js
index e2d5b9b..1602e65 100644
--- a/client/js/app.js
+++ b/client/js/app.js
@@ -13,12 +13,16 @@ mainApp.config(['$routeProvider', function($routeProvider){
$routeProvider.
when('/home',{
- templateUrl: 'partials/home/main.html',
+ templateUrl: 'partials/home/home.html',
controller: 'homeCtrl'
}).
when('/network',{
- templateUrl: 'partials/network/main.html',
+ templateUrl: 'partials/network/network.html',
controller: 'networkCtrl'
+ }).
+ when('/image',{
+ templateUrl: 'partials/image/image.html',
+ controller: 'imageCtrl'
}).otherwise({
redirectTo: '/home'
});
diff --git a/client/js/controllers/image/image.js b/client/js/controllers/image/image.js
new file mode 100644
index 0000000..036dec3
--- /dev/null
+++ b/client/js/controllers/image/image.js
@@ -0,0 +1,9 @@
+/**
+ * The image controller
+ *
+ * @param {$scope} $scope The $scope service from angular
+ */
+mainApp.controller('imageCtrl', function ($scope)
+{
+ $scope.title="Test";
+});