You are doing great job, but I think, probably you have made a little mistake in the explanation of counterEffect() function. As I understand, counterEffect() call effect(...) which REGISTER a function, which will be called every time any signal will be updated. So you have to call it in constructor(), not in setCounter(). In the last version of your code during clicking "Set counter" button it sets to a signal variable (counter) a new value and sets also information, that a signal value was changed. Then you register (calling counterEffect() which calls effect()) a function to react on signals changes. Once registered, this function see that it was a change and call the lines with console.log. And it normally works. But if you press the button one more time, you register a NEW, SECOND function, and because of that, you have doubled the lines of console.log.
Hello Sir, there is scenario that in admin panel I have to show wallet balance there is separate component of wallet balance when there is any transaction update the wallet balance so how to show that updated wallet balance because wallet balance is comes from api using signal. Please guide me for this scenario.
You are doing great job, but I think, probably you have made a little mistake in the explanation of counterEffect() function. As I understand, counterEffect() call effect(...) which REGISTER a function, which will be called every time any signal will be updated. So you have to call it in constructor(), not in setCounter().
In the last version of your code during clicking "Set counter" button it sets to a signal variable (counter) a new value and sets also information, that a signal value was changed. Then you register (calling counterEffect() which calls effect()) a function to react on signals changes. Once registered, this function see that it was a change and call the lines with console.log. And it normally works. But if you press the button one more time, you register a NEW, SECOND function, and because of that, you have doubled the lines of console.log.
Thanks for clarifying it. Appreciate your sharing of knowledge
Thank you so much... please upload videos on daily basis...it's request
Sure. Expect daily videos on Angular
Sir, I have a question when and why should we use Signals, how its changing the user experience for an app?
Signals can be useful specially when u want side effects for data that’s changing say search, edit, update etc
Can you please provide the Angular 17 notes? Which is you created while videos
Sure. I will post the notes in the github soon
Thank you so much sir
You are most welcome! Glad you are enjoying the series 👍
Hello Sir,
there is scenario that in admin panel I have to show wallet balance there is separate component of wallet balance when there is any transaction update the wallet balance so how to show that updated wallet balance because wallet balance is comes from api using signal.
Please guide me for this scenario.
Awesome video. From Nepal
Thanks so much for liking the tutorials 👍
Thanks
Glad you liked the tutorials 👍
@@ARCTutorials Please post the tutorials about advanced routing & forms and HTTP