ffffng/app/scripts/directives/help.js

22 lines
435 B
JavaScript
Raw Permalink Normal View History

2014-05-12 20:08:19 +02:00
'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'
};
});