Local Change Detection in Angular is easy with Signals

  Рет қаралды 1,569

Code Shots With Profanis

Code Shots With Profanis

Күн бұрын

In this video, you will see in a UI representation what the change detection looks like when an #angular application has a Default change detection strategy, what it looks like with OnPush change detection, and last but definitely not least what is the impact of a Local Change Detection.
You will also see how to handle the click events, and how the UI events affect our application using angular signals.
Chapters:
0:00 Intro
1:17 Default Change Detection Strategy
2:38 OnPush Change Detection Strategy
3:40 Local Change Detection Strategy
4:41 Handle the Click Events
6:37 Component Communication using Service
10:18 Thank you
✨ Repo:
github.com/profanis/codeShots...
🎉 CSS binary tree:
I followed the code from this codepen to generate the binary tree codepen.io/alvaromontoro/full...
******************************************************
Let's connect
******************************************************
Twitter: / prodromouf
LinkedIn: / prodromouf
#angular #learnAngular #angularTutorial #signals #angular17 #softwareengineer

Пікірлер: 24
@ilirbeqiri253
@ilirbeqiri253 3 ай бұрын
Great explanation there man. Thanks a lot ❤️ Just one thing that I noticed is that you call .update fn to update signal value but still extract the signal’s value itself instead of using the one provided by default from the update fn itself. Just mentionin for not causing confusion. Thanks again🎉🎉
@CodeShotsWithProfanis
@CodeShotsWithProfanis 3 ай бұрын
ohh yeah. Thanks for that. It seems that I combined a syntax of set along with update :) The correct should be this.#counter.update((value) => value - 1); or this.#counter.set(this.#counter() - 1);
@thomaslhomme6857
@thomaslhomme6857 Ай бұрын
Exactly what I was looking for. Thanks!
@SebastianEcheverry-mp7ti
@SebastianEcheverry-mp7ti 2 ай бұрын
this is really time saving
@tarasshevchuk8477
@tarasshevchuk8477 3 ай бұрын
Thank you Fanis for very good explanation !!!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 3 ай бұрын
Glad it was helpful!
@Nabulio85
@Nabulio85 Ай бұрын
Great demo!❤
@CodeShotsWithProfanis
@CodeShotsWithProfanis 27 күн бұрын
Thank you! 🤗
@DraaElMizan
@DraaElMizan 3 ай бұрын
Brilliant, can't wait for a full implementation of signals in Angular. Thanks for sharing Profanis. Please keep the tuts coming.
@sergiokagiema9658
@sergiokagiema9658 25 күн бұрын
Excellent example! Well done!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 15 күн бұрын
Many thanks! :)
@georgespanos4680
@georgespanos4680 3 ай бұрын
Awesome Fanis!!!
@andersonantunes3287
@andersonantunes3287 Ай бұрын
Excellent video, congrats. One more subscriber
@CodeShotsWithProfanis
@CodeShotsWithProfanis Ай бұрын
Thanks!! :)
@ansumanmishra9608
@ansumanmishra9608 3 ай бұрын
Excellent tutorial ❤
@CodeShotsWithProfanis
@CodeShotsWithProfanis 3 ай бұрын
Glad you liked it!
@cdotforce
@cdotforce 3 ай бұрын
Cool!
@malikrajat
@malikrajat 3 ай бұрын
Thanks sharing, It really a knowledge heavy video. I have request, Can you please share git repo for this code base
@utsahpaikray
@utsahpaikray 2 ай бұрын
Great
@zaferdemir4680
@zaferdemir4680 3 ай бұрын
Great! How about new signal model? There is just a simple examples on angular dev. Can you please share on a new video complex signal model code base?
@CodeShotsWithProfanis
@CodeShotsWithProfanis 3 ай бұрын
Thanks for asking. Indeed the Signal Model will be one of my next videos
@andersonantunes3287
@andersonantunes3287 Ай бұрын
I didn't know this way of obtaining the click event using `fromEvent` from `RXJS`. Is it possible to obtain the same result as `fromEvent` in relation to ancestral components using something native to Angular?
@CodeShotsWithProfanis
@CodeShotsWithProfanis Ай бұрын
I would expect the Signal Components (they are not yet there), or a zonelss change detection would do the trick natively. This is the PR of the zoneless provider github.com/angular/angular/pull/55329
@andersonantunes3287
@andersonantunes3287 Ай бұрын
@@CodeShotsWithProfanis Thanks for the information, I'll wait for the new version to test
Get to Know Signal Queries in Angular 17
17:43
Code Shots With Profanis
Рет қаралды 1,3 М.
Learn How to Use Angular's 17 Signal Inputs
3:48
Code Shots With Profanis
Рет қаралды 2,1 М.
ПООСТЕРЕГИСЬ🙊🙊🙊
00:39
Chapitosiki
Рет қаралды 16 МЛН
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 12 МЛН
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 36 МЛН
Why Angular Signals? Write Your First Signal
14:25
Angular University
Рет қаралды 6 М.
Angular change detection explained in 5 minutes
6:06
Simplified Courses
Рет қаралды 12 М.
Unit Test Those Tricky Angular Functional Guards   - Here's How!
16:55
Code Shots With Profanis
Рет қаралды 3,5 М.
Understand Angular Signals in 20 Minutes
20:17
Igor Sedov
Рет қаралды 7 М.
Input Signals in Angular 17.1 - How To Use & Test
14:34
Decoded Frontend
Рет қаралды 21 М.
Code of Conduct
2:10
Hans Zimmer
Рет қаралды 369 М.
Here's what I've figured out about Angular signals
8:33
Joshua Morony
Рет қаралды 11 М.
Why I decided to switch to the inject() function in Angular
6:10
Joshua Morony
Рет қаралды 52 М.
Understanding Signals
8:04
Academind
Рет қаралды 28 М.
iphone fold ? #spongebob #spongebobsquarepants
0:15
Si pamer 😏
Рет қаралды 583 М.
Main filter..
0:15
CikoYt
Рет қаралды 291 М.
POCO F6 PRO - ЛУЧШИЙ POCO НА ДАННЫЙ МОМЕНТ!
18:51
wyłącznik
0:50
Panele Fotowoltaiczne
Рет қаралды 23 МЛН
Apple watch hidden camera
0:34
_vector_
Рет қаралды 53 МЛН