I have created the new component in angular 2 and I am getting this error "Individual declaration in merged declaration 'MyComponentComponent' must be all exported or all local." As I am new to angular 2 I am not able to figure out the error on code need help.! Thanks in advance ..!
I think that you have several classes with the same name MyComponentComponent
. When defining a component, you need to take a new name for its implementation class.
@Component({
(...)
})
export class Component1 {
(...)
}
@Component({
(...)
})
export class Component2 {
(...)
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With