Migrate An Angular 11 Project to 17: Step-by-Step Guide

Поделиться
HTML-код
  • Опубликовано: 11 фев 2024
  • Migrate An Angular 11 Project to 17: Step-by-Step Guide
    Ready to unleash the power of Angular 17? Join this comprehensive guide as we migrate an Angular 11 project to the latest version, step-by-step!
    Unlock these features:
    🆕 Master new functionalities like standalone components, improved performance, and enhanced templating
    Build a real-world project with routing, forms, and CRUD operations
    Discover best practices and pro tips for a smooth transition
    This beginner-friendly tutorial covers everything you need:
    ✅ Upgrade process, explained simply
    ️ Project setup and structure
    Routing implementation
    How to convert to standalone
    How to remove ng modules
    How to convert ngFor and ngIf in to new control flow syntaxes
    Don't miss out! Start your Angular 17 journey today and learn by doing.
    #angular17 #angular #angularproject #angularlivetutorial #angular17fullproject #angular17tutorial #angularupgradetutorial #angularmigration #angular16to17 #angular17crud #angular17course #angular17components #angular17beginner
    Complete Project Tutorial: • Complete Project | A C...
    Migrate An Angular 11 Project to 17: Step-by-Step Guide

Комментарии • 63

  • @muhammedjamsheerpattambi4635
    @muhammedjamsheerpattambi4635 11 дней назад +1

    Excellent content. Thank you very much!🤩

  • @harshparikh4683
    @harshparikh4683 Месяц назад +1

    nice work! very detailed step by step guide.

  • @MukeshSharma-xd4dn
    @MukeshSharma-xd4dn 3 месяца назад +1

    Superb video dude. Thank you so much.

  • @laurentiualexandru3475
    @laurentiualexandru3475 Месяц назад +1

    Well done, it helped me in my work. Keep it up

  • @jayapalagowda
    @jayapalagowda 4 месяца назад +1

    Excellent 🤗

  • @sushantkunkekar2155
    @sushantkunkekar2155 5 месяцев назад +1

    Super🎉

  • @rishiraj2548
    @rishiraj2548 Месяц назад +1

    thanks

  • @sudheerkumar-tp1mg
    @sudheerkumar-tp1mg 4 месяца назад +1

    awsome

  • @chandraprakashkale1113
    @chandraprakashkale1113 4 месяца назад

    Will you share the commands for upgrade flow and standalone. Also will you please share will there be many circumstances to upgrade till 17 because I have very big project. Any command that it will change automatically with the updated tags in my files.

    • @WebTechTalk
      @WebTechTalk  4 месяца назад

      ng g @angular/core:control-flow - This is to change the old control flow to new syntax.
      ng g @angular/core:standalone - This is to convert your app to standalone. This will remove modules and make all components standalone.

  • @jeanmarcokassatechnology3542
    @jeanmarcokassatechnology3542 15 дней назад +1

    merci pour video
    pourrais tu faire une video angular 18 ssr stp

    • @WebTechTalk
      @WebTechTalk  15 дней назад

      Merci beaucoup. Bien sûr que je le ferai. Avez-vous eu la chance de voir ça.
      ruclips.net/video/7_SzJnZy_kg/видео.html
      C’est en utilisant Angular 17. Il n’y aura pas de grande différence entre 17 et 18.

  • @ajitdarnal876
    @ajitdarnal876 3 месяца назад

    ng g @angular/core:standalone
    ? Choose the type of migration: Convert all components, directives and pipes to standalone
    ? Which path in your project should be migrated? .
    Maximum call stack size exceeded

    • @WebTechTalk
      @WebTechTalk  3 месяца назад

      I have not faced this issue before, however when I google, I found that this error is because of some circular dependencies in your application between components, pipes, directives etc. They are suggesting to find that circular dependencies and resolve that. Otherwise, instead of using dot, using --path to specify a smaller folder to migrate. So that you can find in which folder you are facing that circular dependency. And then, you can manually migrate that particular folder.

  • @thankikaushik
    @thankikaushik 13 часов назад

    Could you please make one which use angular material ui and ngrx store ? 11 to 17/18 ?

  • @therockstar4727
    @therockstar4727 Месяц назад

    Hi sir,
    i migrated to version 15 , but files in the node_modules aren't updated , It says ''can't find stylesheets to import'' . what should i do?

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      Try deleting your node modules folder and package lock json and then do npm install.

  • @abdullahbhojani4772
    @abdullahbhojani4772 Месяц назад

    how come angular v17 is working on your nodejs version 14?

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      I think you have skipped that part. I upgraded my node js version to 18 before upgrading local angular version from 15 to 16.

  • @omiiishirke8049
    @omiiishirke8049 3 месяца назад

    I updated angular 14 to 17, on 17 mat library (style) related changes are broke how to fix this, if you know can you tell me ?

    • @WebTechTalk
      @WebTechTalk  3 месяца назад

      I have not faced this before. Make sure you are using the compatible version of the mat library. Also check mat library documentation for any implementation changes.

    • @kartikeykamal4809
      @kartikeykamal4809 24 дня назад +1

      This is what happens when someone just make video with half information. MDC material based components are introduced in material 15. To fix those style material upgrade will automatically do that and somewhere if its lefts you need to manually change also if your style is still not fixing then you need to dive deep into by changing all the style manually to mdc based. Hope this helps

    • @omiiishirke8049
      @omiiishirke8049 23 дня назад

      @@kartikeykamal4809 yes, most of components automatically upgrade, and also I manually upgrade some components, Thank you for your reply🙏

  • @jayakumar2927
    @jayakumar2927 5 месяцев назад

    error shows like this : Package '@angular/core' is not a dependency.

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад

      Use --force or --legacy-peer-deps along with your update or install or uninstall command

  • @adithyachitturi3246
    @adithyachitturi3246 18 дней назад

    Hi sir,
    I have migrated to angular 17,with no compliation errors,but when I run the project,the project appears blank on localhost. What should I do. Is it necessary to make the project standalone and app.routing?

    • @WebTechTalk
      @WebTechTalk  18 дней назад

      Are you seeing any errors in the browser console?

    • @adithyachitturi3246
      @adithyachitturi3246 16 дней назад

      @@WebTechTalk hi , I have cleared the error in the console,but I encountered another problem,the header is displaying twice. Can u help me please.

    • @WebTechTalk
      @WebTechTalk  16 дней назад

      @@adithyachitturi3246 is it getting doubled in all the pages?

  • @saylimore7298
    @saylimore7298 Месяц назад

    Getting error while migrate A16 -A17 error NG5002: Parser Error: Unexpected token 'let' while migrate contol flow in angular 17

    • @WebTechTalk
      @WebTechTalk  Месяц назад +1

      In the new control flow syntax, we should not use let inside for block. You can remove that to fix this. A more detailed video on the new control flow syntax is coming soon.

    • @saylimore7298
      @saylimore7298 Месяц назад

      Thank you so much... waiting for new video

  • @RavuruIndu
    @RavuruIndu Месяц назад

    I updated from angular 15 to 16 , when i do ng s I'm getting lot of errors . Can't bind to 'formGroup' since it like ng model errors . can you tell me what to do for this

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      Are you using standalone components now?

    • @RavuruIndu
      @RavuruIndu Месяц назад

      @@WebTechTalk no I'm not using any standalone components, before converting my project into standalone I'm getting these errors

    • @RavuruIndu
      @RavuruIndu Месяц назад

      @@WebTechTalk I think the 16th version is only supporting standalone

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      @@RavuruIndu No even version 17 supports both standalone and non-standalone

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      @@RavuruIndu may be some compatibility issues with the dependencies

  • @RileyYang-pu9oe
    @RileyYang-pu9oe Месяц назад

    Hii sir, is there any way to migrate to 17 , without making my project standalone

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      If your Angular 16 application is not standalone and if you migrate, it will migrate as a non-standalone application only. Even in this video you can see that.

    • @RileyYang-pu9oe
      @RileyYang-pu9oe Месяц назад

      ​@@WebTechTalk but after migrating to angular 16 , after running my project I'm getting lot of ng module errors and there are no standalone components

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      @@RileyYang-pu9oe May I know what kind of errors you are getting

  • @jayakumar2927
    @jayakumar2927 5 месяцев назад

    Can you share Github url

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад

      github.com/freelancer-surender/Angular-General/tree/main/final-project

  • @bharathvlogger4951
    @bharathvlogger4951 5 дней назад

    This video does not talk about any components migration. Since there are a number of changes happened related to components in Angular 15, it will be be helpful

    • @WebTechTalk
      @WebTechTalk  5 дней назад

      @@bharathvlogger4951 Are you mentioning about the standalone component. I believe I have covered that too.

  • @dmytrokapustiuk9531
    @dmytrokapustiuk9531 Месяц назад

    I have error with ng update Cannot find module 'node-gyp/bin/node-gyp.js'

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      Try deleting your node modules folder, package lock dot json and then do npm install

  • @guillermoboh8479
    @guillermoboh8479 Месяц назад

    I got this error executing the first command: ng update @angular/core@12 @angular/cli@12
    -----
    Node.js version v14.21.3 detected.
    The Angular CLI requires a minimum Node.js version of v18.19.
    ----
    i have node v14.21.3 and angular cli 11.2.1
    Any suggestions?

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      What is the angular version mentioned in your package.json?

    • @guillermoboh8479
      @guillermoboh8479 Месяц назад +1

      @@WebTechTalk The problem was my version of Nodejs, I installed the node version manager (nvm), installed the compatible version and configured it to use it from nvm, now I have the Angular 17 version updated!! thanks for the video!

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      @@guillermoboh8479 Actually for angular 12, node 18 is not needed. That is why I asked for the version in package json. Anyways it is good to hear that you have resolved.