Add image view, controller.

This commit is contained in:
manzerbredes 2016-03-06 14:51:50 +01:00
parent 9b36459eb8
commit 96094547dd
7 changed files with 26 additions and 3 deletions

View file

@ -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'
});

View file

@ -0,0 +1,9 @@
/**
* The image controller
*
* @param {$scope} $scope The $scope service from angular
*/
mainApp.controller('imageCtrl', function ($scope)
{
$scope.title="Test";
});