Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = angular.module('app');
- app.directive('openMenuByClick', ['$timeout',
- function ($timeout) {
- return {
- restrict: 'A',
- link: function(scope, element, attrs){
- element.on('click', function () {
- $timeout(function () {
- $("#"+attrs.openMenuByClick).find('input').click();
- });
- });
- }
- };
- }]
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement