Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialShyam Gupta
7,757 PointsWhat does "post processing" mean?
@07:32 it's mentioned that when we apply a declarator to a class, function or property, we are "post processing" it. What does it mean?
1 Answer
Ari Misha
19,323 PointsHiya there! Angular is a complete and a powerful framework , backed by Google and a bunch of individual developers all around the globe. The core Angular pretty much works with HOF(Higher Order Functions). Now what the heck is HOC? In simple words, Higher Order Functions are function that ma or may not take in another function as a parameter but returns another function. Thats how decorators work as well. In order make a class a component in Angular, we use @Component decorator , which ships with Angular core. Now what is a decorator? Decorator is HOF , which adds metadata to a class or method. It decorates the class. Angular ships with many decorators and directives. So yeah when TypeScript and webpack compiles all the assets and files, Angular reads the decorator metadata first , and then do what its told in the decorator. MetaData means information about the data. So yeah metadata are pretty much instructions. I hope it painted a bigger picture in your mind about how angular works behind the scene.
~ Ari