Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. var app = angular.module('app');
  2.  
  3. app.directive('openMenuByClick', ['$timeout',
  4. function ($timeout) {
  5. return {
  6. restrict: 'A',
  7. link: function(scope, element, attrs){
  8. element.on('click', function () {
  9. $timeout(function () {
  10. $("#"+attrs.openMenuByClick).find('input').click();
  11. });
  12. });
  13. }
  14. };
  15. }]
  16. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement