Last time we were talking about Angular Ivy. It makes the framework faster, smaller, and simpler. But Ivy also makes Angular more flexible by adding the dynamism, which we can use to do metaprogramming, implement higher-order components and mixins. This post will be devoted to metaprogramming with Angular Ivy.
Everyone in the Angular community is excited about the approaching release of Ivy — the new Angular renderer. And Angular Ivy brings metaprogramming. Basically, metaprogramming is used to achieve three things:
- Encapsulating established code patterns to make our components more concise.
- Experimenting with new framework features, without making changes to the framework itself.
- Evolving libraries without introducing breaking change
You can find out more about how to use metaprogramming with Angular Ivy here.
Pay your attention also to the state management pattern for Angular applications called Akita.