Angular Parent Child Communication - Pass Your Data Correctly

preview_player
Показать описание
In this video you will learn how Angular input output parent and child components can communicate with each other. We are using input decorator and output decorator to describe Angular component communication. On the real example you will see how we can pass data from parent component to our child component and how thorough events child component can notify parent about some changes.

MOST POPULAR COURSES

SERVICES THAT I'M USING

CONNECT WITH ME!

REFERENCES

TIMESTAMPS
0:00 Introduction
4:40 Angular input decorator
7:17 Angular output decorator
15:38 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.
Рекомендации по теме
Комментарии
Автор

I was looking for a good angular resource to learn and luckily found your channel Thank

mohammedmerajpasha
Автор

is it possible to have the advanced course for free ? thanks

ahmedmk
Автор

Hi, i thought it's better to put the function in the child component rather than the parent component?

SyahirahFaizal
Автор

Thank You. But I think you need to increase your speed a bit.

fahadhafeez
Автор

user-list.component.ts
Member 'users' implicitly has an 'any' type.

if I create user.ts
export type User = {
id: string;
name: string;
age: number;
}

and change @Input at user-list.component.ts as below:
@Input() users!: User[];

everything works.

But if I took away the exclamation mark then I received the message:

Property 'users' has no initializer and is not definitely assigned in the constructor.

What does it mean in case of @Input? We have to initiialize it somehow?

artem_zakharchuk