Hiprup
Angular

What is the difference between annotations and decorators in Angular?

Annotations were passive metadata arrays from Google's AtScript language, briefly present in early Angular 2 alpha. Decorators are TypeScript functions that actively receive the target class/property and attach metadata via `reflect-metadata`. Modern Angular uses decorators exclusively; annotations are historical trivia.

Loading question...
What is the difference between annotations and decorators in Angular? | Hiprup