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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ค. 2024
  • Modern Angular With Signals Course - angular-university.io/course/...
    This video is a quick summary of all the major features of Angular 18, with a focus on Zoneless.
    Timestamps:
    0:00 Video Summary
    00:40 Migrating to Zoneless
    09:25 ng-content fallback content
    11:30 new form events observable
    12:45 route redirects as functions
    Helpful links:
    - Angular 18 release post - blog.angular.dev/angular-v18-...
    - Zoneless docs angular.dev/guide/experimenta...
    Related articles on the Angular University blog:
    blog.angular-university.io/an...
    Free content at the Angular University:
    - 20% of our lessons are free, you don't have to login to watch the lessons. The free lessons are the ones with the P (Pro) - angular-university.io
    - Watch the free Angular For Beginners Course - angular-university.io/course/...
    Follow me:
    Twitter - / angularuniv
    Facebook - / angular.university
    TH-cam - / @angularuniversity
    Instagram - / angular.university
    LinkedIn - / angular-university
    TikTok - / angularuniversity
    Threads - www.threads.net/@angular.univ...

ความคิดเห็น • 92

  • @AngularUniversity
    @AngularUniversity  2 หลายเดือนก่อน +5

    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 2 หลายเดือนก่อน +13

    Well, we’re officially leaving Zone.js , we’re entering the new future of Angular🎉

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน +1

      Yes, we are go for launch 🚀

    • @LarsRyeJeppesen
      @LarsRyeJeppesen 2 หลายเดือนก่อน

      We completed the transition, took 5 minutes and works flawlessly. Just some @angular/fire issues. nice

    • @andyloren4826
      @andyloren4826 2 หลายเดือนก่อน

      Yeah, finally, let's celebrate it!

  • @bones_twisting_sorrow4750
    @bones_twisting_sorrow4750 13 วันที่ผ่านมา

    great rundown as always

  • @AlainBoudard
    @AlainBoudard 2 หลายเดือนก่อน

    Very nice presentation of Angular 18 ! Thanks Vasco 👌😎

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน

      Thank you Alain, you're welcome. 😊 Enjoy 👍

  • @MonaCodeLisa
    @MonaCodeLisa หลายเดือนก่อน

    you are quick, cool video thank you for sharing :)
    I still need some time to wrap my mind around some things

    • @AngularUniversity
      @AngularUniversity  หลายเดือนก่อน

      Thank you, please enjoy the video 😊

  • @Brendan2Alexander
    @Brendan2Alexander 2 หลายเดือนก่อน +2

    Excellent video thank u! Am going to go zoneless immediately. Rock on!!

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน

      Thank you Brendan, have fun trying Zoneless. 👍 It's way simpler and less complicated than it sounds. 😊

  • @codeme8016
    @codeme8016 หลายเดือนก่อน

    Great video. Thanks a lot!

  • @phreakadelle
    @phreakadelle 2 หลายเดือนก่อน

    Looks very promising! :) Wanna try it soon!

  • @yufgyug3735
    @yufgyug3735 2 หลายเดือนก่อน +5

    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  2 หลายเดือนก่อน +1

      They just keep them coming those releases, don't they? 😉 I'm still migrating to signals as well 👍

  • @dryphresque7113
    @dryphresque7113 2 หลายเดือนก่อน

    Thank U for this video excellent video

  • @tranquillityEnthusiast
    @tranquillityEnthusiast 2 หลายเดือนก่อน +11

    Im still in hangover of 17, Already 18 released 😅🤣 👍

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน +2

      They keep them coming, right? 😉

    • @tranquillityEnthusiast
      @tranquillityEnthusiast 2 หลายเดือนก่อน

      @@AngularUniversity yup

    • @LarsRyeJeppesen
      @LarsRyeJeppesen 2 หลายเดือนก่อน +1

      Every 6 months.. been like this for many years

  • @eduardohernandezanzardo1378
    @eduardohernandezanzardo1378 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน

      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 2 หลายเดือนก่อน +1

      We already use it in production :)

  • @AghileshT
    @AghileshT 2 หลายเดือนก่อน

    @AngularUniversity Thanks for switching to the VS Code dark theme 🤝, which I commented on Angular Signals video.

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน

      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. 👍😊

  • @anutaNYC
    @anutaNYC 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน

      The upgrade to 18 will be seamless unless you want to turn on Zoneless and were not using OnPush. 👍

    • @anutaNYC
      @anutaNYC 2 หลายเดือนก่อน +1

      @@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 2 หลายเดือนก่อน

      @@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  2 หลายเดือนก่อน +1

      @@anutaNYC You mean expression has changed after it was checked? 😉

  • @bartekaszczuk5201
    @bartekaszczuk5201 2 หลายเดือนก่อน +2

    It looks like it works exactly the same as OnPush - as if OnPush were the default change detection strategy.

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน +1

      Yes it works very similarly. Applications using OnPush should have little trouble upgrading. 😉

  • @markgagnon28
    @markgagnon28 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน +1

      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. 😊

  • @madeOfClay99
    @madeOfClay99 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน +1

      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. 👍

  • @big_time_banana
    @big_time_banana หลายเดือนก่อน

    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  หลายเดือนก่อน

      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 หลายเดือนก่อน

      @@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 หลายเดือนก่อน +1

    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  หลายเดือนก่อน

      If you use signals, or the async pipe, you don't have to use the change detector ref. The recommended approach is signals 👍

  • @gauravsahu3828
    @gauravsahu3828 หลายเดือนก่อน

    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  หลายเดือนก่อน

      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 - th-cam.com/video/ZlcL0dQvh-U/w-d-xo.html

  • @mmorgan4x
    @mmorgan4x 2 หลายเดือนก่อน

    when using zoneless, will change detection strategy matter which is selected, default vs on push?

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน

      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 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน +1

      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. 👍

  • @Brendan2Alexander
    @Brendan2Alexander หลายเดือนก่อน

    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  หลายเดือนก่อน +1

      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 หลายเดือนก่อน

      @@AngularUniversity good to know. now if i could only get my nx workspace to behave...

  • @rohitkharche7562
    @rohitkharche7562 2 หลายเดือนก่อน

    Can you make a video on using new material 3 by default

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน

      I think it's almost identical to the previous version, with a few tweaks here and there.

  • @vasanthy2k7
    @vasanthy2k7 หลายเดือนก่อน

    I am still using angular 8. 😢

  • @TheSysmat
    @TheSysmat 2 หลายเดือนก่อน +1

    Experimental I have problems with NG bootstrap modal, tool tips, toast,....

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน +1

      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 2 หลายเดือนก่อน +1

      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 2 หลายเดือนก่อน

      @@LarsRyeJeppesen NG0914: The application is using zoneless change detection, but is still loading Zone.js. but still not working

    • @TheSysmat
      @TheSysmat 2 หลายเดือนก่อน

      provideZoneChangeDetection and in angular.json "polyfills": [
      "zone.js"
      ] will work fine, thx

  • @_Afsus
    @_Afsus 2 หลายเดือนก่อน

    What's the importance of it?

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน

      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 2 หลายเดือนก่อน

    I've never heard anyone prefer vscode theme to darcula!

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน +1

      Trust me on this one, it's waaaayyy better 😉

    • @adambickford8720
      @adambickford8720 2 หลายเดือนก่อน

      @@AngularUniversity I've used both and couldn't disagree more lol

    • @madeOfClay99
      @madeOfClay99 2 หลายเดือนก่อน

      For me it is the other way, I use VSCode with darcula theme, I am unable to use other theme. Darcula is perfect

  • @CodeZakk
    @CodeZakk 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน +2

      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 2 หลายเดือนก่อน +1

      No thanks

  • @ErnaSolbergXXX
    @ErnaSolbergXXX หลายเดือนก่อน

    angular feels like its made by dirty fixes to fix other dirty fixes.

    • @AngularUniversity
      @AngularUniversity  หลายเดือนก่อน

      Just like the browser, Windows, or many other successful technologies that never broke backwards compatibility. 😊👍

    • @ErnaSolbergXXX
      @ErnaSolbergXXX หลายเดือนก่อน

      @@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  หลายเดือนก่อน

      @@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.

  • @sudharsanamtk
    @sudharsanamtk 2 หลายเดือนก่อน

    Still a simple hello world is 500kb

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน

      They are working on it, it though it was 300k something last time I heard about it. 👍

  • @LarsRyeJeppesen
    @LarsRyeJeppesen 2 หลายเดือนก่อน +1

    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  2 หลายเดือนก่อน +1

      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. 👍

    • @jacked6
      @jacked6 2 หลายเดือนก่อน

      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?

  • @Nabulio85
    @Nabulio85 2 หลายเดือนก่อน

    Thank you Vasco.
    Explanations always as clear, precise and concise.
    🙏🫶

    • @AngularUniversity
      @AngularUniversity  2 หลายเดือนก่อน

      Thank you, I'm happy to hear that 😊

  • @valeriyaleksandrovich2707
    @valeriyaleksandrovich2707 หลายเดือนก่อน

    How to difficult to listen you

    • @AngularUniversity
      @AngularUniversity  หลายเดือนก่อน

      The sound is not good? Accent too strong?

    • @valeriyaleksandrovich2707
      @valeriyaleksandrovich2707 หลายเดือนก่อน

      @@AngularUniversity Accent too strong. There is a big difference when the text is read and when an explanation is given on one’s own