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
@ShadowBlackzZ6 ай бұрын
Well, we’re officially leaving Zone.js , we’re entering the new future of Angular🎉
@AngularUniversity6 ай бұрын
Yes, we are go for launch 🚀
@LarsRyeJeppesen6 ай бұрын
We completed the transition, took 5 minutes and works flawlessly. Just some @angular/fire issues. nice
@andyloren48266 ай бұрын
Yeah, finally, let's celebrate it!
@yufgyug37356 ай бұрын
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.
@AngularUniversity6 ай бұрын
They just keep them coming those releases, don't they? 😉 I'm still migrating to signals as well 👍
@Brendan2Alexander6 ай бұрын
Excellent video thank u! Am going to go zoneless immediately. Rock on!!
@AngularUniversity6 ай бұрын
Thank you Brendan, have fun trying Zoneless. 👍 It's way simpler and less complicated than it sounds. 😊
@bones_twisting_sorrow47504 ай бұрын
great rundown as always
@AghileshT6 ай бұрын
@AngularUniversity Thanks for switching to the VS Code dark theme 🤝, which I commented on Angular Signals video.
@AngularUniversity6 ай бұрын
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. 👍😊
@MonaCodeLisa6 ай бұрын
you are quick, cool video thank you for sharing :) I still need some time to wrap my mind around some things
@AngularUniversity6 ай бұрын
Thank you, please enjoy the video 😊
@eduardo.hernandez916 ай бұрын
Great video! Angular 18 is amazing, but I would like to use zone-less when it is ready for production. Thanks for sharing.
@AngularUniversity6 ай бұрын
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. 😊
@LarsRyeJeppesen6 ай бұрын
We already use it in production :)
@AlainBoudard6 ай бұрын
Very nice presentation of Angular 18 ! Thanks Vasco 👌😎
@AngularUniversity6 ай бұрын
Thank you Alain, you're welcome. 😊 Enjoy 👍
@bartekaszczuk52016 ай бұрын
It looks like it works exactly the same as OnPush - as if OnPush were the default change detection strategy.
@AngularUniversity6 ай бұрын
Yes it works very similarly. Applications using OnPush should have little trouble upgrading. 😉
@anutaNYC6 ай бұрын
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!!!
@AngularUniversity6 ай бұрын
The upgrade to 18 will be seamless unless you want to turn on Zoneless and were not using OnPush. 👍
@anutaNYC6 ай бұрын
@@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
@anutaNYC6 ай бұрын
@@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 😂
@AngularUniversity6 ай бұрын
@@anutaNYC You mean expression has changed after it was checked? 😉
@tranquillityEnthusiast6 ай бұрын
Im still in hangover of 17, Already 18 released 😅🤣 👍
@AngularUniversity6 ай бұрын
They keep them coming, right? 😉
@tranquillityEnthusiast6 ай бұрын
@@AngularUniversity yup
@LarsRyeJeppesen6 ай бұрын
Every 6 months.. been like this for many years
@phreakadelle6 ай бұрын
Looks very promising! :) Wanna try it soon!
@AngularUniversity6 ай бұрын
Enjoy the release 😉
@codeme80166 ай бұрын
Great video. Thanks a lot!
@AngularUniversity6 ай бұрын
You're welcome 😉
@LarsRyeJeppesen6 ай бұрын
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
@AngularUniversity6 ай бұрын
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. 👍
@youngandfree936 ай бұрын
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?
@dryphresque71136 ай бұрын
Thank U for this video excellent video
@AngularUniversity6 ай бұрын
Thank you, you're welcome 😊
@big_time_banana6 ай бұрын
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?
@AngularUniversity6 ай бұрын
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_banana5 ай бұрын
@@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.
@josuefreitas28646 ай бұрын
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...
@AngularUniversity6 ай бұрын
If you use signals, or the async pipe, you don't have to use the change detector ref. The recommended approach is signals 👍
@madeOfClay996 ай бұрын
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
@AngularUniversity6 ай бұрын
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. 👍
@TheSysmat6 ай бұрын
Experimental I have problems with NG bootstrap modal, tool tips, toast,....
@AngularUniversity6 ай бұрын
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.
@LarsRyeJeppesen6 ай бұрын
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
@TheSysmat6 ай бұрын
@@LarsRyeJeppesen NG0914: The application is using zoneless change detection, but is still loading Zone.js. but still not working
@TheSysmat6 ай бұрын
provideZoneChangeDetection and in angular.json "polyfills": [ "zone.js" ] will work fine, thx
@rohitkharche75626 ай бұрын
Can you make a video on using new material 3 by default
@AngularUniversity6 ай бұрын
I think it's almost identical to the previous version, with a few tweaks here and there.
@Brendan2Alexander6 ай бұрын
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?!)
@AngularUniversity6 ай бұрын
I tried with a simple signals app, and the forms where working fine, but haven't tried it yet in a more complex app. 👍
@Brendan2Alexander6 ай бұрын
@@AngularUniversity good to know. now if i could only get my nx workspace to behave...
@vasanthy2k75 ай бұрын
I am still using angular 8. 😢
@mmorgan4x6 ай бұрын
when using zoneless, will change detection strategy matter which is selected, default vs on push?
@AngularUniversity6 ай бұрын
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-gy6hd6 ай бұрын
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?
@AngularUniversity6 ай бұрын
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. 👍
@gauravsahu38286 ай бұрын
Is it necessary that if object defined in signalstate will only have deepsignal property.. can we achieve that in component? Without using signalState .?
@AngularUniversity6 ай бұрын
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
@markgagnon286 ай бұрын
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?
@AngularUniversity6 ай бұрын
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. 😊
@CodeZakk6 ай бұрын
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😊😊
@AngularUniversity6 ай бұрын
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. 😊
@LarsRyeJeppesen6 ай бұрын
No thanks
@_Afsus6 ай бұрын
What's the importance of it?
@AngularUniversity6 ай бұрын
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.
@adambickford87206 ай бұрын
I've never heard anyone prefer vscode theme to darcula!
@AngularUniversity6 ай бұрын
Trust me on this one, it's waaaayyy better 😉
@adambickford87206 ай бұрын
@@AngularUniversity I've used both and couldn't disagree more lol
@madeOfClay996 ай бұрын
For me it is the other way, I use VSCode with darcula theme, I am unable to use other theme. Darcula is perfect
@ErnaSolbergXXX6 ай бұрын
angular feels like its made by dirty fixes to fix other dirty fixes.
@AngularUniversity6 ай бұрын
Just like the browser, Windows, or many other successful technologies that never broke backwards compatibility. 😊👍
@ErnaSolbergXXX6 ай бұрын
@@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.
@AngularUniversity6 ай бұрын
@@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.
@Nabulio856 ай бұрын
Thank you Vasco. Explanations always as clear, precise and concise. 🙏🫶
@AngularUniversity6 ай бұрын
Thank you, I'm happy to hear that 😊
@sudharsanamtk6 ай бұрын
Still a simple hello world is 500kb
@AngularUniversity6 ай бұрын
They are working on it, it though it was 300k something last time I heard about it. 👍
@valeriyaleksandrovich27076 ай бұрын
How to difficult to listen you
@AngularUniversity6 ай бұрын
The sound is not good? Accent too strong?
@valeriyaleksandrovich27076 ай бұрын
@@AngularUniversity Accent too strong. There is a big difference when the text is read and when an explanation is given on one’s own