ffffng/app/scripts/directives/navbar.js

18 lines
378 B
JavaScript
Raw Permalink Normal View History

2014-05-12 20:08:19 +02:00
'use strict';
angular.module('ffffng')
.directive('fNavbar', function (Navigator) {
2014-05-31 19:19:36 +02:00
var ctrl = function ($scope, config) {
$scope.config = config;
2014-05-12 20:08:19 +02:00
$scope.goHome = function () {
Navigator.home();
};
};
return {
'controller': ctrl,
'restrict': 'E',
'templateUrl': 'views/directives/navbar.html'
};
});