Add image view, controller.
This commit is contained in:
parent
9b36459eb8
commit
96094547dd
7 changed files with 26 additions and 3 deletions
|
@ -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'
|
||||
});
|
||||
|
|
9
client/js/controllers/image/image.js
Normal file
9
client/js/controllers/image/image.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* The image controller
|
||||
*
|
||||
* @param {$scope} $scope The $scope service from angular
|
||||
*/
|
||||
mainApp.controller('imageCtrl', function ($scope)
|
||||
{
|
||||
$scope.title="Test";
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue