- Explore the APIs and instances given to us through compile and link
Take the directive in this repo, and add a link function to it.
Use the compile
function to change the textContent of our directive.
Then, use the post
function to add an event listener to the directive.
View Angular Compile Link Lab on Learn.co and start learning to code for free.