I am new in Angular2. I have tried to create a component but showing an error.
This is the app.component.ts file.
import { Component } f
Check which module the parent component is being declared in...
If your parent component is defined in the shared module, so must your child module.
The parent component could be declared in a shared module and not the module that is logical based on the file directory structure / naming, even the Angular CLI added it into the wrong module in my case.