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