Getting Started with Standalone Components in Angular

Поделиться
HTML-код
  • Опубликовано: 24 авг 2022
  • Join the Angular team's very own Jessica Janiuk as she guides us through the getting started with the brand new Standalone Components feature in Angular.
    Join the conversation online:
    Angular Twitter → / angular
    Jessica's Twitter → / thepunderwoman
    Example Code:
    github.com/angular/examples/t...

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

  • @seabird021186
    @seabird021186 Год назад +9

    Sample of Demo is not good, If you use : Learn More

    This page will reload all scripts, images, including [main.js] . So, I recommend you demo with using [routerLink] to reload only script.

  • @kedevked
    @kedevked Год назад +58

    Angular keeps on becoming better and better 🎉🙏🏾

  • @theanswer1993
    @theanswer1993 Год назад +6

    So Angular is becoming more like React and Vue?

  • @Whizyrel
    @Whizyrel Год назад +4

    I see, "I am standing here alone...". Nice entry point 😂

  • @braco0000
    @braco0000 Год назад +1

    Uhmmmm... Angular getting away from being Angular...?

  • @HasanBGuner
    @HasanBGuner Год назад +1

    Good info but not professional. Because it doesn't talk about concrete roadmap. What is the place of module and component in the future. Doesn't give confidence about how to design for future compliance.

  • @balaloha

    is this AI?

  • @andreip.8321

    so painful seeing the navigation to dogView using a href...

  • @MelroyvandenBerg

    When I use: `ng generate component DogsList --flat --standalone`. I no longer get the CommonModule as imports nor implements OnInit by default in my generated code. is that correct??

  • @bensadik
    @bensadik Год назад +6

    Very cool, I'm using standalone components only since it got out, my app got no modules whatsoever

  • @bestraub98
    @bestraub98 Год назад +22

    Finally! This was the main feature angular was missing, compared to react and vue. It makes refactoring so much easier (just because less files are involved).

  • @rajtkbabu
    @rajtkbabu Год назад +11

    Amazing feature, when building with react component , we expected something we need here in Angular also..

  • @lukash9952
    @lukash9952 Год назад +10

    Love this new feature! Used it already in prod project.

  • @josephsackeykontor4138
    @josephsackeykontor4138 Год назад +3

    I love this feature. Finally, it is here

  • @md.zahidhasansohan6921
    @md.zahidhasansohan6921 Год назад +2

    great thanks for that! Very clear and articulate!

  • @JuanPablodelaTorre
    @JuanPablodelaTorre Год назад +35

    With the popularization of Single Component Angular Modules (SCAM), standalone components was the most obvious next step. I'm thrilled this happened so seamlessly.

  • @yuriimarshalofficial
    @yuriimarshalofficial Год назад +3

    Thanks for explaining, I rewrote the project today, removed all modules and set components as standalone. Now I feel like the most standalone programmer with all that provider functions at main.ts file. The framework is moving to splitted direct dependencies more and more. That's the great decision but also I so used to work with modules) For now my feature folder is determined with routing of lazy loading components. Please create more examples of all native modules providers that were wrapped by functions with new naming 🙏❤

  • @nahuelleiva8460
    @nahuelleiva8460 Год назад +14

    This is an amazing feature because it reduces the number of files you'll need to handle in your project but I think it will be widely used to implement small components rather than bigger ones.

  • @otakujsdev

    THANK YOU! for such a great job!

  • @metric152
    @metric152 Год назад +1

    This is a great feature. Looking forward to when this is production ready