Angular Signals: The Complete Guide

  Рет қаралды 23,398

Web Tech Talk

Web Tech Talk

Күн бұрын

Пікірлер: 81
@shyamplays
@shyamplays 8 ай бұрын
awesome!!!! Thanks for detailed explanation, Please make a complete tutorial series on angular 18 with all new concepts.
@WebTechTalk
@WebTechTalk 8 ай бұрын
Nice idea. I will create one video.
@renrenklein_th
@renrenklein_th 7 ай бұрын
Great video I love how you show all of your points using examples and not just assuming people can learn just by being told the concepts. Very nicely done.
@WebTechTalk
@WebTechTalk 7 ай бұрын
Thanks a lot 🙏
@84Joooli
@84Joooli Ай бұрын
Thank you for the examples showing why to use these! The first simple example was really all that was needed :) and your real world scenario added the explanation of why we sometimes should allow for setting values inside an effect, great!
@WebTechTalk
@WebTechTalk Ай бұрын
Thank you so much for your great feedback.
@mahmoudsamir6876
@mahmoudsamir6876 3 ай бұрын
I appreciate the time and effort you put into each video.
@WebTechTalk
@WebTechTalk 3 ай бұрын
Thank you so much 🙏
@immohammadjaved
@immohammadjaved 5 ай бұрын
Hats off to you🎉, the simplest tutorial of signal
@WebTechTalk
@WebTechTalk 5 ай бұрын
Thank you so much 🙏
@matthewdolman
@matthewdolman Ай бұрын
This was a really concise explanation, great work
@WebTechTalk
@WebTechTalk Ай бұрын
Thank you so much
@ananda2153
@ananda2153 3 ай бұрын
Detailed explanation of signals with a real time example. Thanks for sharing the knowledge !!
@WebTechTalk
@WebTechTalk 3 ай бұрын
Thank you so much.
@PrathyushaReddyChalla
@PrathyushaReddyChalla 4 ай бұрын
Great video. You cleared all my doubts . Thanks A lot !!!
@WebTechTalk
@WebTechTalk 4 ай бұрын
Thank you so much
@LexMadafaka
@LexMadafaka 5 ай бұрын
Very very useful and understandable example. Thanks you.
@WebTechTalk
@WebTechTalk 5 ай бұрын
Thank you so much 🙏
@ayushsharma397
@ayushsharma397 4 ай бұрын
Amazing, complete video, Thanks!
@WebTechTalk
@WebTechTalk 4 ай бұрын
Thank you so much 😊
@jaykamau2753
@jaykamau2753 2 ай бұрын
Liked and subscribed! Thank you for the explanation
@WebTechTalk
@WebTechTalk 2 ай бұрын
Thank you so much 🙏
@makannanagaraj3060
@makannanagaraj3060 3 ай бұрын
Precise explanation, Thank you for your effort
@WebTechTalk
@WebTechTalk 3 ай бұрын
Thank you so much
@chandrahaasvemula7251
@chandrahaasvemula7251 Ай бұрын
Fantastic explanation; he has such a nice Indian tone!!
@WebTechTalk
@WebTechTalk Ай бұрын
@@chandrahaasvemula7251 Thank you 🙏
@huw1676
@huw1676 3 ай бұрын
Really good explanation. Thank you
@WebTechTalk
@WebTechTalk 3 ай бұрын
@@huw1676 Thank you
@SumitKhanduri
@SumitKhanduri 8 ай бұрын
Quick question Do we have to use same instance of TodoService to make it work with signals, instead of => {providedIn: root} can we use => providers:[MyService] But then what is the point of Signals then, i can build the same functionality without signals using shared service. PS: what i am trying to understand is that what advantage signals provides here then.
@WebTechTalk
@WebTechTalk 8 ай бұрын
Good question. Yes, we need to have same instance of service, otherwise we cannot share the same signal. The benefit of signals is more related to reactive programming. For example, in an add to cart application, we can share data through service, but if the data changes that will not be notified to the other components unless we use a Subject mechanism or Emitter mechanism. But this will be solved when we use Signals. Also, Signals are recently introduced, and some APIs are getting changed. So, we may expect more features in the upcoming angular releases.
@Remirured
@Remirured 7 ай бұрын
Great video, thank you sir
@WebTechTalk
@WebTechTalk 7 ай бұрын
Thank you so much
@jashneaaftabi
@jashneaaftabi 8 ай бұрын
Your every video is ahead of time or I can say AOT 😂 kudos to you 🎉👍
@WebTechTalk
@WebTechTalk 8 ай бұрын
Thank you so much 😀
@parmarkamlesh6493
@parmarkamlesh6493 19 күн бұрын
Hi , very interesting topic and thanks for sharing, can we use signal to change value of radio button based on some conditions at run time and vise versa.? If yes how? The radio button component is in another component and the data which we are processing is in another component. So here we need communication as well between components.
@WebTechTalk
@WebTechTalk 19 күн бұрын
@@parmarkamlesh6493 Yes we can do. Usually we use the @output or behaviour subject. We can use signals instead of that. We can directly bind the signal value to the radio button value.
@Hamir.
@Hamir. 6 ай бұрын
learned with pratical examples
@WebTechTalk
@WebTechTalk 6 ай бұрын
Thanks
@ommo289
@ommo289 8 ай бұрын
thank you sir for a good and short compilation of the whole theme one question about your real life example: when creating an effect for calling refreshCart() function you said "whenever my cart signal is changed". And there is no single signal value used inside the effect function. Does it mean that effects listen ALL signals that are in the scope of a component (meaning every signal that is stored inside cartService or other dependencies)? Or does it happens because you're actually calling set function of your signal inside of refreshCart (which in it's turn is called inside an effect)?
@WebTechTalk
@WebTechTalk 8 ай бұрын
Very good question. The effect is triggered because of this line of code. this.cartService.cart() in the for loop. As I am using the cart signal inside the refreshCart function, whenever its value changes the effect will be triggered.
@sandeep_gandham
@sandeep_gandham 8 ай бұрын
Good concelt sir❤👌
@WebTechTalk
@WebTechTalk 8 ай бұрын
Thank you so much
@godexpubg2957
@godexpubg2957 5 ай бұрын
Thanks a lot
@WebTechTalk
@WebTechTalk 5 ай бұрын
Most welcome
@mraihiamine2907
@mraihiamine2907 8 ай бұрын
Sir do you have the project in GitHub?
@WebTechTalk
@WebTechTalk 8 ай бұрын
Yes. You can find in the same GitHub repo.
@mraihiamine2907
@mraihiamine2907 8 ай бұрын
@@WebTechTalk the link please
@WebTechTalk
@WebTechTalk 8 ай бұрын
@@mraihiamine2907 github.com/freelancer-surender/Angular-General
@mraihiamine2907
@mraihiamine2907 8 ай бұрын
Thank you so so so much sir 🥰
@mmkbhdk
@mmkbhdk 4 ай бұрын
can u share your github repo for the video example code?
@WebTechTalk
@WebTechTalk 4 ай бұрын
You can find all codes related to angular advanced concepts here. github.com/freelancer-surender/Angular-General
@mmkbhdk
@mmkbhdk 3 ай бұрын
@@WebTechTalk Thanks a lot
@videogenix5510
@videogenix5510 8 ай бұрын
Sir please make a video of project using advanced concepts. Also now angular 18 is out and i am waiting for your videos to know in simple way angular 18 features. Btw way i want to tell you that i switch from my company by learning angular from your zero to hero and hero to superhero series. Whoever asks me i share your channel. Its best and simple. Thanks.
@WebTechTalk
@WebTechTalk 8 ай бұрын
Thank you so much 👍 So happy to hear that my videos helped you in your career advancement. Definitely I will create a video on complete project using advanced concepts.
@ghostinplainsight4803
@ghostinplainsight4803 21 күн бұрын
I'll never understand why they chose to make us call the signal function to get the value `signal()`, rather than using a `signal.value` getter or `signal.value()` method. To me it looks confusing calling a function to get a value from a signal. The convention of rxjs and the async pipeline seems better to me.
@WebTechTalk
@WebTechTalk 21 күн бұрын
Yes true. This is a confusing syntax. But we will be familiar with it when we use it often, like how *ngFor and *ngIf was in the beginning, instead of traditional for and if syntax in other programming.
@danielvega646
@danielvega646 5 ай бұрын
This is basically Angular implementing React. Now we have fewer reasons to use React, lmao.
@WebTechTalk
@WebTechTalk 5 ай бұрын
Yes :)
@sunil24sunil
@sunil24sunil 4 ай бұрын
bro i need parent child concepts using output input
@WebTechTalk
@WebTechTalk 4 ай бұрын
Please see this video bro kzbin.info/www/bejne/pGW4lXyMlpifr6c
@anutaNYC
@anutaNYC 7 ай бұрын
I am still not clear how we know that effect will not trigger infinite changes?
@WebTechTalk
@WebTechTalk 7 ай бұрын
Effect will trigger infinite changes only when we are setting some value inside the effect which triggers another effect and the loop continues.
@videogenix5510
@videogenix5510 8 ай бұрын
Why you stopped sharing github for advanced concepts? Can you please share them?
@WebTechTalk
@WebTechTalk 8 ай бұрын
I usually push the code once after the video is published. You can check now.
@arunrocky5629
@arunrocky5629 9 күн бұрын
Why are we polluting the constructor again?? Professionals say we are not supposed to write any business logic in the constructor. Why are we writing effects in the constructor?
@WebTechTalk
@WebTechTalk 9 күн бұрын
You are right. I should have used inject and use effects outside constructor. But I thought it may confuse the viewers. Also, I have read somewhere we can use effects in constructor with caution. As this is a small app, I thought of using in constructor itself.
@matthewkk5087
@matthewkk5087 8 ай бұрын
Its same like react usestate as I see
@WebTechTalk
@WebTechTalk 8 ай бұрын
Yes. And effect is somewhat similar to useEffect.
@igorr4682
@igorr4682 7 ай бұрын
It's very disappointing and discouraging that we don't have any English-speaking individuals who can effectively teach others in a proper way.
@WebTechTalk
@WebTechTalk 7 ай бұрын
Sorry bro I am not a native English speaker
@mohammedhussain602
@mohammedhussain602 7 ай бұрын
Well u try teaching this subject nothing stopping, or u saying ur English is not up to spec😂
@Zhene4eg
@Zhene4eg 7 ай бұрын
Okay, so looks like Angular team want's to stop using ReactiveX(RxJS) - and use their own approach istead. Looks like main idea of signals - remove third party RxJS from Angular, am I right ?
@WebTechTalk
@WebTechTalk 7 ай бұрын
Reactive programming is always good and Angular is moving towards the same. We still need RxJS. Also angular is improving performance in many ways. One such way is through Signals.
@Zhene4eg
@Zhene4eg 7 ай бұрын
@@WebTechTalk thanks :)
What's new in Angular 18
2:27
Web Tech Talk
Рет қаралды 2,6 М.
Why Angular Signals? Write Your First Signal
14:25
Angular University
Рет қаралды 17 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Signals Unleashed: The Full Guide
1:39:24
Rainer Hahnekamp
Рет қаралды 33 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 498 М.
Deferrable Views in Angular 17
10:01
Web Tech Talk
Рет қаралды 3 М.
Angular 19 blew me away
36:15
Theo - t3․gg
Рет қаралды 89 М.
How to deeply understand Angular signals (...or anything)
10:51
Joshua Morony
Рет қаралды 14 М.
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 107 М.
Angular Signals: What? Why? and How?
27:08
Deborah Kurata
Рет қаралды 72 М.
Understanding Signals
8:04
Academind
Рет қаралды 38 М.
Here's what I've figured out about Angular signals
8:33
Joshua Morony
Рет қаралды 23 М.