Feature Request: Ability to Apply Directives
See original GitHub issueFirst off, thank you for this package, it is great.
It would be great to have the ability to apply other directives to the component and have them then applied to the <img/>
element. For example I am also using this package in my project. In order to apply it to an image element the markup would look something like:
<img-loader [src]="map" useImg [spinner]="false" imageViewer></img-loader>
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Ability to use !include directives in UI editor - Feature Requests
In particular, I would love to be able to use the !include directive in my dashboards! I've got a few integrations that auto-generate...
Read more >Need ability to add directives to host elements in component ...
In the the following example, I have a button component, and a directive that will apply styles based on touch events. T...
Read more >Send a Gadget a Custom Directive from a Skill | Alexa ...
If you want to trigger Alexa Gadget behaviors from a custom skill, you can do that by sending one or more custom directives...
Read more >GraphQL directives are underrated - LogRocket Blog
Simply put, a directive is a function that augments some other functionality. It is defined using the @ symbol. For instance, in the...
Read more >mod_authz_core - Apache HTTP Server Version 2.4
The alias providers can then be referenced through the Require directive in the same way as a base authorization provider. Besides the ability...
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
@ihadeed thank you!
Attaching an attribute dynamically won’t register it as a directive.
The following is possible but I need to test it to make sure it works:
HTML code will look as follows:
Then in the TypeScript code, I can host the
click
event and callstopPropagation
if the image is not loaded yet. This should stop any click event handlers from functioning. I’m just not sure if it has any effect on theimageViewer
event handler, or if it would run before theimageViewer
handler runs.