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-scrollcomponent 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 theupdateevent fromvirtual-scrollcomponent."viewPortItems = $event"assigns the event object to theviewPortItemsproperty in parent component.
I hope this helps 🙂
0
solved Angular2/4: What do [] and () means in angular html files?