- Use a native event API
- Use a Controller inside Directive
- Update Controller layer using native events
Using the directive in this repo, add event listeners to change the text when the user clicks. Change it to "Thank you for clicking!". Remember to use require
and $apply()
!