Angular Signal Input - The Solution to Angular Inputs

  Рет қаралды 3,747

Monsterlessons Academy

Monsterlessons Academy

4 ай бұрын

Learn Angular signal input and how it simplifies getting data in the component. It solves major problems like using NgOnChanges and not specifying default value.
► CHECK MY COURSES - monsterlessons-academy.com/co...
MOST POPULAR COURSES
► Javascript interview questions - monsterlessons-academy.com/co...
► Typescript interview questions - monsterlessons-academy.com/co...
► React interview questions - monsterlessons-academy.com/co...
► Angular Interview Questions monsterlessons-academy.com/co...
► Building real project with Angular + NgRx - monsterlessons-academy.com/co...
► Building real NestJS API - monsterlessons-academy.com/co...
► Building real fullstack project - monsterlessons-academy.com/co...
► Mastering Git - monsterlessons-academy.com/co...
► Mastering Docker and Docker Compose - monsterlessons-academy.com/co...
FOLLOW ME
► TWITTER - / monster_lessons
► INSTAGRAM - / monsterlessonsacademy
► TIKTOK - / monsterlessonsacademy
REFERENCES
► Source code - github.com/monsterlessonsacad...

Пікірлер: 26
@deanhantzis9630
@deanhantzis9630 4 ай бұрын
Couldn't be explained better. Thanks.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 ай бұрын
Glad it helped!
@user-jh4yb1sk9d
@user-jh4yb1sk9d 4 ай бұрын
Very useful. Thank you a lot
@MonsterlessonsAcademy
@MonsterlessonsAcademy 4 ай бұрын
Glad it was helpful!
@amitsinha5260
@amitsinha5260 3 ай бұрын
Really great and useful video
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 ай бұрын
Glad you think so!
@mariusboianciuc7324
@mariusboianciuc7324 4 ай бұрын
Thank you for your great work! But what do you think, is it ok to only use signals from now on? Or just in cases when we expect the variable to change ? how well optimized are they ?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 4 ай бұрын
They are stable and fast. Effect is still in dev preview btw. I don't see why not
@burningtree878
@burningtree878 4 ай бұрын
Signals are awesome guys! Jump on the fun wagon and start programming naturally again 🎉
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 ай бұрын
Yeap
@ryanbutterworth26
@ryanbutterworth26 4 ай бұрын
Thanks for this. I want to try and change a form builder to rather use signal inputs.The issue is in the test, even if I type the input correctly, the test gives an error. I tried with a simple number example. questionNumber = input.required() in the test describe('Question input', ()=> { it('should take in a input of type number', () => { component.questionNumber = 5 }) }) I think it throwing an error, as you mentioned this is a ready only signal. Not sure how you would test it then?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 4 ай бұрын
I didn't use signals with forms. I don't think it will work or that forms are prepared to be used with signals. I would just leave forms as reactive for now.
@hamza201183
@hamza201183 4 ай бұрын
Many thanks! Very informative :) Is this already in Angular 17? Or 17.1?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 4 ай бұрын
17.1
@dg-cg5gi
@dg-cg5gi 2 ай бұрын
I try this but it doesn't work. whenever I change my @inputs to input signals, the template in my child component doesn't like the syntax? As if it doesn't recognize it right? parent.component: child.component: objectArray = input(); This fails in the parent component template saying: Property objectArray is not provided by any applicable directives nor by element? I can't find anything on this?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 ай бұрын
Working only from 17.2 and outputs from 17.3
@maciek77killer
@maciek77killer 3 ай бұрын
Can I use signal input in my dump component when in smart component I use observable with async? is it ok?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 ай бұрын
Yes. input doesn't care how it gets value outside
@user-ep2vn2wb5m
@user-ep2vn2wb5m 4 ай бұрын
Thanks, very usefull. Angular team has really worked hard for this version but it seems to have neglected the SSR mode with the problem of accessing cookies from the server. This is a major problem of this version and remains unresolved since November. Unable to implement authentication on SSR. Do you have an alternative to this problem ?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 4 ай бұрын
Unfortunately no. I rarely use SSR for client projects
@user-ep2vn2wb5m
@user-ep2vn2wb5m 4 ай бұрын
​@@MonsterlessonsAcademy Whatever version, Angular always takes a crazy long time before the first client rendering. I tried several optimizations without success, that's why I turned to the SSR
@botondvasvari5758
@botondvasvari5758 4 ай бұрын
angular rocks
@MonsterlessonsAcademy
@MonsterlessonsAcademy 4 ай бұрын
Yeap
@omjagtap3432
@omjagtap3432 4 ай бұрын
Is DSA important in finding the job as a full stack developer
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 ай бұрын
What is DSA?
@omjagtap3432
@omjagtap3432 3 ай бұрын
Data structures and algorithm.
Angular Code Review Best Practices - Refactoring From Junior Level to Senior
27:10
NgRx Signals Store - Is It a NgRx Replacement?
20:17
Monsterlessons Academy
Рет қаралды 9 М.
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,3 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 3,8 МЛН
🌊Насколько Глубокий Океан ? #shorts
00:42
Универ. 10 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:04:59
Комедии 2023
Рет қаралды 2,8 МЛН
Input Signals in Angular 17.1 - How To Use & Test
14:34
Decoded Frontend
Рет қаралды 23 М.
Angular Signal Output - It’s Getting Even Better
6:09
Monsterlessons Academy
Рет қаралды 3 М.
Javascript Coding Interview Questions- You Must Know Them
17:06
Monsterlessons Academy
Рет қаралды 15 М.
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 87 М.
🚦NEW Angular 17 model() feature ... You MUST Know This!
11:19
Angular University
Рет қаралды 4,5 М.
Angular 17 Features With Examples - You Must Know That
14:44
Monsterlessons Academy
Рет қаралды 36 М.
Angular 17 Defer - Improve Performance in Your Application
11:27
Monsterlessons Academy
Рет қаралды 8 М.
Unlocking the Power of Angular Signals + RxJS: Practical Applications
16:24
Angular Interview Questions - Coding Interview 2023
49:13
Monsterlessons Academy
Рет қаралды 23 М.
Learn Angular Signals - The Future of State Management
10:02
Monsterlessons Academy
Рет қаралды 21 М.
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,3 МЛН