πŸ“Š Angular
Q. How can you create a custom directive in Angular?
  • (A) By using the @Directive decorator
  • (B) By using the @Component decorator
  • (C) By extending the Directive class
  • (D) By creating a service
πŸ’¬ Discuss
βœ… Correct Answer: (A) By using the @Directive decorator

Explanation: Custom directives are defined with the @Directive decorator.

Explanation by: Mr. Dubey
Custom directives are defined with the @Directive decorator.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
45
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate