Compile and link

Objectives

  • Explore the APIs and instances given to us through compile and link

Instructions

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 link function to add an event listener to the directive.