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

21 lines
435 B
JavaScript

'use strict';
angular.module('ffffng')
.directive('fHelp', function () {
var ctrl = function ($scope) {
$scope.showHelp = false;
$scope.toggleHelp = function () {
$scope.showHelp = !$scope.showHelp;
};
};
return {
'controller': ctrl,
'restrict': 'E',
'scope': {
'text': '@'
},
'templateUrl': 'views/directives/help.html'
};
});