Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Add directive

See original GitHub issue

By 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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

Misiucommented, Sep 28, 2017

@JavanXD why not use ctrl+n instead of charcodes? I suggest a cleaner usage: <button [angularHotKey]="ctrl+n">New Document</button>

chr1sosclcommented, Apr 23, 2019

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>

Read more comments on GitHub >

github_iconTop 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 -
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found