ffffng/app/scripts/directives/navbar.js
2014-05-31 19:19:36 +02:00

17 lines
378 B
JavaScript

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