What are the basic rules of decorators?
Answer / Daleep Singh
Decorators in Angular can be applied to classes, methods, properties, and parameters. They provide a way to add behavior or metadata to existing code without modifying it directly. The basic rules include: they must return a function, they can rearrange the code through function calls, and they can access the original function, class, etc. via arguments.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is angular front end or backend?
What is the difference between Rootscope and Scope in AngularJS?
What is ng-include and when to use it?
How long has angularjs been around?
What is the difference between $scope and scope in angularjs?
What is the difference between $evalasync and $timeout in angularjs?
What is router and its types?
How will you explain the concept of hierarchy? How many scopes can an application have?
What is guard in angular?
Is $http service is restful web service in angular js?
What is scope in AngularJS?
What do you mean by module in angular 2?