What classes should not be added to declarations?

Posted by Jennifer | Updated on

The below class types shouldn’t be added to declarations

  1. A class which is already declared in any another module.
  2. Directives imported from another module.
  3. Module classes.
  4. Service classes.
  5. Non-Angular classes and objects, such as strings, numbers, functions, entity models, configurations, business logic, and helper classes.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers