declarations – Organizing Your Application
This metadata contains an array of components, directives, and pipes that make up the module. These components must belong to only one module, otherwise, the Angular compiler will throw an error, as shown in Figure…