ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
whats the use of get here?
Thanks for the tut~ clear and easy to understand.
Thanks sir for this series
Much usefull , great explanation 👌👍
In child.component.ts, property name is _loggedIn and in app.component.html, you used loggedIn (without underscore) , then how come your code executed fine? Anyways many thanks for the detailed concepts provided.
because the setter is called 'loggedIn ' and it is the input parameter
why use getter and setter when we can actually access and manipulate variable using @Input() ?
By using setter we can receive data from parent to child and can run some execute some code in setter function, every time child receive data.
Can the child component update data in the parent using this method?
Why to use _ before loggedin . Is that a decorator or convention?
just convention
Nice. We love you
How to pass multiple variable to child component?
You can pass an object instead of just a single value :)
why is it ===??
=== faster than == in the background
@@issambaccouch6358 This is true but the performance difference is irrelevant. === is strict equality, which also compares the datatypes.
whats the use of get here?
Thanks for the tut~ clear and easy to understand.
Thanks sir for this series
Much usefull , great explanation 👌👍
In child.component.ts, property name is _loggedIn and in app.component.html, you used loggedIn (without underscore) , then how come your code executed fine?
Anyways many thanks for the detailed concepts provided.
because the setter is called 'loggedIn ' and it is the input parameter
why use getter and setter when we can actually access and manipulate variable using @Input() ?
By using setter we can receive data from parent to child and can run some execute some code in setter function, every time child receive data.
Can the child component update data in the parent using this method?
Why to use _ before loggedin . Is that a decorator or convention?
because the setter is called 'loggedIn ' and it is the input parameter
just convention
Nice. We love you
How to pass multiple variable to child component?
You can pass an object instead of just a single value :)
why is it ===??
=== faster than == in the background
@@issambaccouch6358 This is true but the performance difference is irrelevant. === is strict equality, which also compares the datatypes.