Angular Dart from the Beginning: 09 Two Way Data Binding

preview_player
Показать описание
Two way data binding is used when you want information to move back and forth from the template to the associated class.

Notice the directives: const [COMMON_DIRECTIVES]. This is important for this and future features to function properly. This will be better explained when we make custom directives. The concept of directives will be discussed in the future as well.
Рекомендации по теме
Комментарии
Автор

ngModel problem solved. It was missing formDirectives. Anyway, this playlist is the best I found on the internet regarding Angular Dart and I'm searching for days to find something like that. Thumbs Up dear Richard

Machiuka
Автор

ngModel doesn't work for me. My code is:
import

@Component(
selector: 'my-app',
styleUrls: ['tutorial.css'],
template: '''<input type="text" [(ngModel)]="surname">''',
directives: [TodoListComponent],
)
class AppComponent {
String surname="Laura";
}

Machiuka
Автор

What is this ngModel?
Where does it come from?
Why ngModel?
Great video

RamsesAldama