"Round up the usual suspects."
- Casablanca (1942)
By now, we've seen how simple components are created. We've cut our teeth on Angular CLI. And we know how data is passed around from the HTML template to the java... sorry... TypeScript. Hopefully, you've gotten used to the
However, before we move on to seeing how different components interact. there are a couple more tricks we should have in our kitty.
We earlier saw some of Angular's built-in directives in action. But did you know that you could write your own directives, both structural and attribute? We'll learn how in the next chapters.
Another neat tool is the pipe. You can use pipes in your angular template to transform the way your data is displayed, saving you from writing some superficial javascript. Angular has quite a few built-in pipes. And as you might have guessed, you can write your own.
Finally, there's the matter of the lifecycle hooks. Angular exposes certain techniques for you to tap into specific events of the component lifecycle.