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

21 lines
437 B
JavaScript

'use strict';
angular.module('ffffng')
.directive('fNodeSaved', function () {
var ctrl = function ($scope, Navigator) {
$scope.goHome = function () {
Navigator.home();
};
};
return {
'controller': ctrl,
'restrict': 'E',
'scope': {
'node': '=fNode',
'token': '=fToken'
},
'templateUrl': 'views/directives/nodeSaved.html'
};
});