I recently created a simple project using angular 2. When I try to add a directive component to the app.component, there's a red underline for 'directives' property. Anybody tell me what's wrong here?
Directives, components, and pipes need to be added to
@NgModule({
declarations: [...]
since RC.6
directives
, and pipes
was removed from @Component()
back then.
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