21 lines
435 B
JavaScript
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'
|
|
};
|
|
});
|