The directive is now complete. Now let's see how and where we could use it.

In our example element template, we've been rendering the timeAgo directive into a child expression as a string:

However, our directive can be used in any expression type, including attribute expressions and property expressions. So let's say we had a <comment-card> element that accepted a few fields like subject, description, and time. We've gone ahead and imported one for you, so go ahead and add this to the template also:

Now, since the element accepts time as a string, we can bind the timeAgo directive to that attribute, and it will periodically set the element's time without the outer template needing to re-render:

Congratulations! You now have a useful, working AsyncDirective!

Ideas for further study: