in Angular by
Q:
What is the difference between an Annotation and a Decorator in Angular?

1 Answer

0 votes
by

Annotations in angular are “only” metadata set of the class using the Reflect Metadata library. They are used to create an “annotation” array. On the other hand, decorators are the design patterns that are used for separating decoration or modification of a class without actually altering the original source code.

Related questions

+1 vote
asked Jan 15, 2020 in Angular by rahuljain1
0 votes
asked Jun 6, 2022 in Angular by john ganales
+1 vote
asked Jan 15, 2020 in Angular by rahuljain1
+1 vote
asked Jul 5, 2021 in Angular by sharadyadav1986
...