ffffng/app/scripts/directives/nodeSaved.js

23 lines
476 B
JavaScript
Raw Permalink Normal View History

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