Request: Add directive
See original GitHub issueBy adding a directive hotkeys could be easily linked for examle to a button.
<button [angularHotKey]="[17,78]">New Document</button>
<!-- CTRL = 17 & n = 78 -->
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Attribute directives - Angular
To create a directive, use the CLI command ng generate directive . · Import ElementRef from @angular/core . · Add ElementRef in the...
Read more >How to use and create custom directives in Angular
I am adding the appNot directive in the app.component.html but you can use it anywhere in the application. <h1 *appNot="true">True</h1> ...
Read more >How to dynamically add a directive? - angular - Stack Overflow
I have a myTooltip directive and I would like to add mdTooltip directive to it's host. I have tried setAttribute() of ElementRef.nativeElement , ......
Read more >Custom directives - Lit.dev
Use a class based directive to: Access the rendered DOM directly (for example, add, remove, or reorder rendered DOM nodes). Persist state between...
Read more >Angular Directive Tutorial With Example | Custom Directives
Structural directives alter layout by adding, removing, ... belongs to the template's component and does not require the @Input decorator.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JavanXD why not use
ctrl+n
instead of charcodes? I suggest a cleaner usage:<button [angularHotKey]="ctrl+n">New Document</button>
this is an awesome idea, I am looking for the same functionality, but I suppose after one year this enhancement has not been implemented yet. <button [angularHotKey]=“ctrl+n”>New Document</button>