

Lesson 02 · 11 min
Bindings: text, event, two-way
Brackets in a template aren't decoration. Each pair has its own meaning.
11 minLesson 2 of 8Practice includedAsk AI on any point
{{ x }} outputs text. [value]="title" — the element property on the left takes the expression on the right (data down). (click)="save()" — an event up, into a class method. [(ngModel)] — two-way binding between an input and a property; it needs FormsModule.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.