17 lines
338 B
JavaScript
17 lines
338 B
JavaScript
'use strict';
|
|
|
|
angular.module('ffffng')
|
|
.directive('fNavbar', function (Navigator) {
|
|
var ctrl = function ($scope) {
|
|
$scope.goHome = function () {
|
|
Navigator.home();
|
|
};
|
|
};
|
|
|
|
return {
|
|
'controller': ctrl,
|
|
'restrict': 'E',
|
|
'templateUrl': 'views/directives/navbar.html'
|
|
};
|
|
});
|