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?
WATCH NEXT: Angular Interview Questions and Answers - Dominate Your Next Interview - th-cam.com/video/5A_YKlVWMPo/w-d-xo.htmlsi=2DCn7yspEAAJ2H6l
Thanks a lot, nice one again
Always welcome
I was looking for a good angular resource to learn and luckily found your channel Thank you........
Glad I could help!
Great video!
Thanks!
Thanks! Very useful video
Glad to hear!
Gracias !!
You are welcome!
is it possible to have the advanced course for free ? thanks
No as the point of advanced courses to sell them.
@@MonsterlessonsAcademy it is good pace/speed. keep up the good job. thank you for sharing your valuable knowledge and time.
Hi, i thought it's better to put the function in the child component rather than the parent component?
Hi, it depends on what you want to achieve. Most often we want to do smart parents with business logic and dumb children without any logic.
Thank You. But I think you need to increase your speed a bit.
I will try to improve it but as I'm not a native speaker it's the best what I can :)
do it like me in settings playback speed *2
Why using vim tho?
It's more comfortable and productive for me
No sound
I hear it just fine.
@@MonsterlessonsAcademy there is no sound. I'm from india. Is this video audio restricted?.
Can you create a new one. Thanks
@@parasjoshi5509 Nothing is restricted. You are the first person who has problem with audio in my video so it looks like the problem is on your side.
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?
Even I am having same doubt, Artem !