Wednesday, 6 February 2019

Use of @Input in Angular 6+

According to official angular documentation it declares a data-bound input property.

Let's have a look at this simple example.


Example

The following example creates a component with two input properties.


See the Pen
ErwOgM
by Adam Bielecki (@adambielecki)
on CodePen.




3 comments: