Angular Property Binding and Angular Event Binding

preview_player
Показать описание
In this video you will learn about Angular property binding and Angular event binding. I will show you on the real example how to handle events in Angular and react to them inside components. We will also use Angular property binding in order to change our input value.

MOST POPULAR COURSES

SERVICES THAT I'M USING

CONNECT WITH ME!

REFERENCES

TIMESTAMPS
0:00 Introduction
1:17 Event binding in Angular example
15:08 Custom property binding in Angular example
16:27 Call to action

This video is NOT sponsored. Some product links are affiliate links which means if you buy something I'll receive a small commission.
Рекомендации по теме
Комментарии
Автор

Just leave a comment to support the channel)

my homework looks like this:

html file
<form #f="ngForm" (ngSubmit)="submitHandler(f); f.resetForm()" novalidate>
<input name="name" type="text" ngModel />
<input name="age" type="number" ngModel />
<button>Add user</button>
</form>

ts file
submitHandler(f: NgForm) {
const uniqueId = Math.random().toString(16);
const newUser = {
id: uniqueId,
name: f.value.name,
age: f.value.age,
};
this.users.push(newUser);
f.resetForm();
}

artem_zakharchuk
Автор

thanx alot it was very helpfull but it das not work even with restart the serve
best regard

uwillmissable