ffffng/app/scripts/directives/navbar.js
2014-05-12 20:08:19 +02:00

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