You need learn the basics of Angular 2 in order to understand these concepts.
-
The
[items]="items"
is data binding in Angular 2 to pass data from parent component tovirtual-scroll
component where"items"
is the property in parent component and[items]
is the property of child component viz.virtual-scroll
. -
The
=
passes the data from parent component to child component. -
(update)="viewPortItems = $event"
is an event handler to theupdate
event fromvirtual-scroll
component."viewPortItems = $event"
assigns the event object to theviewPortItems
property in parent component.
I hope this helps 🙂
0
solved Angular2/4: What do [] and () means in angular html files?