Use for questions about Angular 2+ directives
Questions tagged [angular2-directives]
1806 questions
0
votes
0 answers
Is there a way to bind an html template file to directive @input?
What I mean is that I have already a directive in angular 2 that one of its input is string or html string like that:
some text
some text

AngularOne
- 2,760
- 6
- 32
- 46
0
votes
1 answer
Adding API javascript to an angular 2 directive?
I couldn't find any good documentation on this.
Say I had a third party library / api and I wanted to implement it into an angular 2 directive. How would I do that?
Given the following: