Code coverage report for Controller/RootController.js

Statements: 100% (4 / 4)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (4 / 4)      Ignored: none     

All files » Controller/ » RootController.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26                                      1   1 1 1    
/*jshint node: true */
'use strict';
 
/*
* Name :  RootController.js
* Module : FrontEnd::Controller
* Location : /frontend/app/Controller
*
* History :
* Version       Date        Programmer                  Description
* =================================================================================================
* 1.0.0         2015-06-12 Francesco Rossetto			Tested
*
* 0.1.0         2015-06-09 Francesco Rossetto			Add all attributes and methods
*
* 0.0.1         2015-06-09  Francesco Rossetto			Initial code      
* =================================================================================================
*/
 
angular.module('norris-nrti')
.controller('RootController', ['$scope', 'UrlProvider', function($scope, UrlProvider){
    $scope.url = '';
    $scope.$watch('url', function(newValue, oldValue) {            
        UrlProvider.prototype.setUrl(newValue);
    }, true);
}]);