Guide: Decorators
Improve this DocDecorators in AngularJS
NOTE: This guide is targeted towards developers who are already familiar with AngularJS basics. If you're just getting started, we recommend the tutorial first.What are decorators?
Decorators are a design pattern that is used to separate modification or decoration of a class without modifying the original source code. In Angular, decorators are functions that allow a service, directive or filter to be modified prior to its usage.
How to use decorators
There are two ways to register decorators
-
$provide.decorator