What classes should not be added to declarations?
The classes that should not be added to declarations are -
- A class that are declared in an app module, Ng module or even in third-party module.
- An array of directives, imported mainly from another module.
- Module classes.
- Service classes.
- Non-angular classes and different another objects.