🚨 Angular 18 Is Out: Zoneless Upgrade (Step-By-Step)

  Рет қаралды 15,811

Angular University

Angular University

Күн бұрын

Пікірлер: 92
@AngularUniversity
@AngularUniversity 6 ай бұрын
Enjoy the new Angular 18 Zoneless support 😉One of the most convenient ways of writing zoneless applications is by using Signals. If you want to learn them, check out my ongoing Modern Angular With Signals Course - angular-university.io/course/angular-signals-course
@ShadowBlackzZ
@ShadowBlackzZ 6 ай бұрын
Well, we’re officially leaving Zone.js , we’re entering the new future of Angular🎉
@AngularUniversity
@AngularUniversity 6 ай бұрын
Yes, we are go for launch 🚀
@LarsRyeJeppesen
@LarsRyeJeppesen 6 ай бұрын
We completed the transition, took 5 minutes and works flawlessly. Just some @angular/fire issues. nice
@andyloren4826
@andyloren4826 6 ай бұрын
Yeah, finally, let's celebrate it!
@yufgyug3735
@yufgyug3735 6 ай бұрын
barely managed to update few of my teams apps to angular 17, now have to update them again to 18 haha. great content as always.
@AngularUniversity
@AngularUniversity 6 ай бұрын
They just keep them coming those releases, don't they? 😉 I'm still migrating to signals as well 👍
@Brendan2Alexander
@Brendan2Alexander 6 ай бұрын
Excellent video thank u! Am going to go zoneless immediately. Rock on!!
@AngularUniversity
@AngularUniversity 6 ай бұрын
Thank you Brendan, have fun trying Zoneless. 👍 It's way simpler and less complicated than it sounds. 😊
@bones_twisting_sorrow4750
@bones_twisting_sorrow4750 4 ай бұрын
great rundown as always
@AghileshT
@AghileshT 6 ай бұрын
@AngularUniversity Thanks for switching to the VS Code dark theme 🤝, which I commented on Angular Signals video.
@AngularUniversity
@AngularUniversity 6 ай бұрын
Yes this theme is much better, I prefer it way better to any other theme. And I get all the power of Webstorm behind it, thank you for the suggestion. 👍😊
@MonaCodeLisa
@MonaCodeLisa 6 ай бұрын
you are quick, cool video thank you for sharing :) I still need some time to wrap my mind around some things
@AngularUniversity
@AngularUniversity 6 ай бұрын
Thank you, please enjoy the video 😊
@eduardo.hernandez91
@eduardo.hernandez91 6 ай бұрын
Great video! Angular 18 is amazing, but I would like to use zone-less when it is ready for production. Thanks for sharing.
@AngularUniversity
@AngularUniversity 6 ай бұрын
Yes, it shouldn't take long. I think they only have a few corner cases remaining like certain scenarios of server-side rendering for example. 😊
@LarsRyeJeppesen
@LarsRyeJeppesen 6 ай бұрын
We already use it in production :)
@AlainBoudard
@AlainBoudard 6 ай бұрын
Very nice presentation of Angular 18 ! Thanks Vasco 👌😎
@AngularUniversity
@AngularUniversity 6 ай бұрын
Thank you Alain, you're welcome. 😊 Enjoy 👍
@bartekaszczuk5201
@bartekaszczuk5201 6 ай бұрын
It looks like it works exactly the same as OnPush - as if OnPush were the default change detection strategy.
@AngularUniversity
@AngularUniversity 6 ай бұрын
Yes it works very similarly. Applications using OnPush should have little trouble upgrading. 😉
@anutaNYC
@anutaNYC 6 ай бұрын
This is insane, I haven’t even figure out signals, control flow and now this!! We just started a new project in 17 thinking it’ll be the latest, Took a while to even upgrade for 16 to 17 in a new project!!!
@AngularUniversity
@AngularUniversity 6 ай бұрын
The upgrade to 18 will be seamless unless you want to turn on Zoneless and were not using OnPush. 👍
@anutaNYC
@anutaNYC 6 ай бұрын
@@AngularUniversity the problem is I'm still swimming in how signals work vs using observables and my team is resisting in using signals untill I prove they are better, the problem I'm not sure the extent of work to move everything to signals, again because I don't understand how to set them up and use instead of subscriptions:( I need help with exact examples on how to take let's say service I have that uses behavior subjects and the subscribes to them for the changes
@anutaNYC
@anutaNYC 6 ай бұрын
@@AngularUniversity also I just made some weird fix for change detection, wish I knew how to work with signals and zoneless to avoid it all 😂
@AngularUniversity
@AngularUniversity 6 ай бұрын
@@anutaNYC You mean expression has changed after it was checked? 😉
@tranquillityEnthusiast
@tranquillityEnthusiast 6 ай бұрын
Im still in hangover of 17, Already 18 released 😅🤣 👍
@AngularUniversity
@AngularUniversity 6 ай бұрын
They keep them coming, right? 😉
@tranquillityEnthusiast
@tranquillityEnthusiast 6 ай бұрын
@@AngularUniversity yup
@LarsRyeJeppesen
@LarsRyeJeppesen 6 ай бұрын
Every 6 months.. been like this for many years
@phreakadelle
@phreakadelle 6 ай бұрын
Looks very promising! :) Wanna try it soon!
@AngularUniversity
@AngularUniversity 6 ай бұрын
Enjoy the release 😉
@codeme8016
@codeme8016 6 ай бұрын
Great video. Thanks a lot!
@AngularUniversity
@AngularUniversity 6 ай бұрын
You're welcome 😉
@LarsRyeJeppesen
@LarsRyeJeppesen 6 ай бұрын
Just a heads up: some 3rd party libraries will crash/break if they cannot use zoneJS. Many of them expect zoneJS to be present. Example: ng-toastr, @angular/fire
@AngularUniversity
@AngularUniversity 6 ай бұрын
Yes 😊 like ng-bootstrap, etc, won't work. I only use custom made components and Angular Material in my projects, with maybe a color picker external lib and that's it. I avoid using anything else because of this, some stop getting updated etc. 👍
@youngandfree93
@youngandfree93 6 ай бұрын
Angular Fire is unfortunate though since I used Firebase alot on Angular projects. I guess we need to configure to Firebase manually without angular fire?
@dryphresque7113
@dryphresque7113 6 ай бұрын
Thank U for this video excellent video
@AngularUniversity
@AngularUniversity 6 ай бұрын
Thank you, you're welcome 😊
@big_time_banana
@big_time_banana 6 ай бұрын
Thanks for the helpful and easy-to-follow video! When I followed your instructions to refactor my app to zoneless, I am getting a ReferenceError: Zone is not defined. Any tips on how to resolve that?
@AngularUniversity
@AngularUniversity 6 ай бұрын
You're welcome, I'l glad you enjoyed it. 👍 I think you might have forgotten to set up the correct provider, because it seems that some part of Angular is still trying to use Zones.
@big_time_banana
@big_time_banana 5 ай бұрын
@@AngularUniversity I just figured out the problem, thanks to a GitHub bug report from another developer. As of now, the Angular Fire package still expects zone.js to be present, and will fail if it's not loaded. They are working on an updated version that doesn't require zone.js to be loaded. For now, though, if you use Angular Fire, you still have to load zone.js.
@josuefreitas2864
@josuefreitas2864 6 ай бұрын
So, now I need to know how and when I have to update the page content manually? This seems like a step backwards, from my point of view it's a very expensive change, performance for me has never been a problem in my Angular applications...
@AngularUniversity
@AngularUniversity 6 ай бұрын
If you use signals, or the async pipe, you don't have to use the change detector ref. The recommended approach is signals 👍
@madeOfClay99
@madeOfClay99 6 ай бұрын
Vasco, what are your thoughts on the current Angular Material v18? I personally think that the colors, in some components, such as buttons are messed up, the default themes have applied a very strange use of colors, or should I say, have applied colorless colors
@AngularUniversity
@AngularUniversity 6 ай бұрын
I thought the use of gray in the dropdowns was weird, my first reaction is I didn't like it that much either, I don't see the improvement. 👍
@TheSysmat
@TheSysmat 6 ай бұрын
Experimental I have problems with NG bootstrap modal, tool tips, toast,....
@AngularUniversity
@AngularUniversity 6 ай бұрын
Yes those won't work indeed. I only use custo made or Angular Material which is all based on OnPush, so that it why it works.
@LarsRyeJeppesen
@LarsRyeJeppesen 6 ай бұрын
This is because those 3rd party libs expect zoneJS to be present. @angular/fire has the same issue. Solution: keep zoneJS in polyfills but still use zoneless change detection
@TheSysmat
@TheSysmat 6 ай бұрын
@@LarsRyeJeppesen NG0914: The application is using zoneless change detection, but is still loading Zone.js. but still not working
@TheSysmat
@TheSysmat 6 ай бұрын
provideZoneChangeDetection and in angular.json "polyfills": [ "zone.js" ] will work fine, thx
@rohitkharche7562
@rohitkharche7562 6 ай бұрын
Can you make a video on using new material 3 by default
@AngularUniversity
@AngularUniversity 6 ай бұрын
I think it's almost identical to the previous version, with a few tweaks here and there.
@Brendan2Alexander
@Brendan2Alexander 6 ай бұрын
So I am combing thru a few apps to prepare to go zoneless. All going well...but I am stumped as to what to do with my reactive forms. Will they continue to work? (haha I will soon find out eh?!)
@AngularUniversity
@AngularUniversity 6 ай бұрын
I tried with a simple signals app, and the forms where working fine, but haven't tried it yet in a more complex app. 👍
@Brendan2Alexander
@Brendan2Alexander 6 ай бұрын
@@AngularUniversity good to know. now if i could only get my nx workspace to behave...
@vasanthy2k7
@vasanthy2k7 5 ай бұрын
I am still using angular 8. 😢
@mmorgan4x
@mmorgan4x 6 ай бұрын
when using zoneless, will change detection strategy matter which is selected, default vs on push?
@AngularUniversity
@AngularUniversity 6 ай бұрын
Good question, as far as I know, Zoneless is it's own thing. default for sure won't work, OnPush haven't tried but it's essentially the same behavior. Let's see what the Angular team says in the session that is just getting started. 👍
@SkyDeveloper-gy6hd
@SkyDeveloper-gy6hd 6 ай бұрын
The Angular 18 Zoneless Change Detection isn't working with AngularFire v18, it produces error when you try to run your App (ReferenceError: Zone is not defined) and causes the App not to run at all... Any fix for that?
@AngularUniversity
@AngularUniversity 6 ай бұрын
Lots of community libraries don't work with zoneless, that is why it's still marked as experimental. Depending on the amount of external libraries that you use, it might be doable or not to use it at this stage. 👍
@gauravsahu3828
@gauravsahu3828 6 ай бұрын
Is it necessary that if object defined in signalstate will only have deepsignal property.. can we achieve that in component? Without using signalState .?
@AngularUniversity
@AngularUniversity 6 ай бұрын
If you are storing your state in an object, the signal() property will emit a new value when any of the properties changes. What you need to avoid it is something like NgRx Signal State, have a look at this video for more details - kzbin.info/www/bejne/kJ3GfWOahtubY7c
@markgagnon28
@markgagnon28 6 ай бұрын
love angular but miss the vuejs hmr when developing. Do you know of a way to replicate the hmr now that esbuild/vite is stable?
@AngularUniversity
@AngularUniversity 6 ай бұрын
The current Angular CLI is blazing fast, and it doesn't reload the whole application anymore. It's a completely new experience than 6 months ago. 😊
@CodeZakk
@CodeZakk 6 ай бұрын
i think they should also update to use all the files in one .ts file instead of creating .ts and .html may creating .ng to wrap all the file. thanks for the content😊😊
@AngularUniversity
@AngularUniversity 6 ай бұрын
You're welcome, the Angular team is going on that direction of providing alternatives for single file components. 👍 Personally my components tend to have quite a bit of CSS, so I prefer to keep that on a separate file. I'm more looking forward to the functional authoring format. 😊
@LarsRyeJeppesen
@LarsRyeJeppesen 6 ай бұрын
No thanks
@_Afsus
@_Afsus 6 ай бұрын
What's the importance of it?
@AngularUniversity
@AngularUniversity 6 ай бұрын
I think it's quite nice, it's one step forward to remove zones ans get rid of weird errors like Expression has changed after it was checked, etc.
@adambickford8720
@adambickford8720 6 ай бұрын
I've never heard anyone prefer vscode theme to darcula!
@AngularUniversity
@AngularUniversity 6 ай бұрын
Trust me on this one, it's waaaayyy better 😉
@adambickford8720
@adambickford8720 6 ай бұрын
@@AngularUniversity I've used both and couldn't disagree more lol
@madeOfClay99
@madeOfClay99 6 ай бұрын
For me it is the other way, I use VSCode with darcula theme, I am unable to use other theme. Darcula is perfect
@ErnaSolbergXXX
@ErnaSolbergXXX 6 ай бұрын
angular feels like its made by dirty fixes to fix other dirty fixes.
@AngularUniversity
@AngularUniversity 6 ай бұрын
Just like the browser, Windows, or many other successful technologies that never broke backwards compatibility. 😊👍
@ErnaSolbergXXX
@ErnaSolbergXXX 6 ай бұрын
@@AngularUniversity that just not true. If you used angular for something more than a «hello world» project there will always be something broken between the upgrades.
@AngularUniversity
@AngularUniversity 6 ай бұрын
@@ErnaSolbergXXX I've been upgrading several applications with every release, some even since the first Angular CLI came out, and the upgrade migrations work flawlessly. I just upgraded my main code base a couple of days ago to 18, it worked great. but you do need to have context about what the release did.
@Nabulio85
@Nabulio85 6 ай бұрын
Thank you Vasco. Explanations always as clear, precise and concise. 🙏🫶
@AngularUniversity
@AngularUniversity 6 ай бұрын
Thank you, I'm happy to hear that 😊
@sudharsanamtk
@sudharsanamtk 6 ай бұрын
Still a simple hello world is 500kb
@AngularUniversity
@AngularUniversity 6 ай бұрын
They are working on it, it though it was 300k something last time I heard about it. 👍
@valeriyaleksandrovich2707
@valeriyaleksandrovich2707 6 ай бұрын
How to difficult to listen you
@AngularUniversity
@AngularUniversity 6 ай бұрын
The sound is not good? Accent too strong?
@valeriyaleksandrovich2707
@valeriyaleksandrovich2707 6 ай бұрын
@@AngularUniversity Accent too strong. There is a big difference when the text is read and when an explanation is given on one’s own
What's new in Angular 17
9:36
Code with Ahsan
Рет қаралды 16 М.
🚦Angular Signals Game-Changing Innovation: NgRx Signal State
0:53
Angular University
Рет қаралды 3,1 М.
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,4 МЛН
Zoneless Angular Applications in V18
14:00
Deborah Kurata
Рет қаралды 20 М.
🚦NEW Angular 17 model() feature ... You MUST Know This!
11:19
Angular University
Рет қаралды 5 М.
Angular Mistakes #6: 🛑 STOP Overusing Centralized Stores
20:20
Angular University
Рет қаралды 6 М.
Content Projection in Angular - Complete Guide (Beginners/Advanced)
26:18
Something is wrong with ISPs in India 🇮🇳
13:17
Mehul - Codedamn
Рет қаралды 23 М.
Angular v19 Developer Event
22:54
Angular
Рет қаралды 53 М.
🚦Angular NgRx Signal Store: WHAT are Deep Signals??
13:53
Angular University
Рет қаралды 9 М.
💥 Angular SSR Deep Dive (With Client HYDRATION) #angular
24:56
Angular University
Рет қаралды 21 М.
Why Angular Signals? Write Your First Signal
14:25
Angular University
Рет қаралды 15 М.
Angular 19 is a BEAST of a release!
19:39
Maximilian Schwarzmüller
Рет қаралды 30 М.
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН