Pass Observables into Components with Async Pipe

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

The components inside of your container components can easily accept Observables. You simply define your custom @Input then use the Async pipe when you pass the Observable in. This lesson walks you through the process of passing an Observable into a Component.

Evgeny Likhoded
~ 7 years ago

The directive property has been removed in RC6 from the @Component() decorator.

The solution for this is to:

  • create a NgModule and
  • declare the ClockComponent inside the declarations: [] array.