Angular & Web Components - Using Angular Elements to create Custom Elements

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

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

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

    How would you create a custom web element using a standalone component and a main.ts that just has bootstrapApplication(AppComponent, appConfig).catch(err => console.error(err)); Note that appConfig is where all providers are added.

  • @huw1676
    @huw1676 Год назад

    Great tutorial! Very well made. Worked a treat. Exactly what I needed.

  • @mihaimicsa2754
    @mihaimicsa2754 7 месяцев назад

    Clear and concise, thank you for this!!!

  • @alexcoroza4518
    @alexcoroza4518 10 месяцев назад

    The best one i found so far. I still have some questions though.
    1. Angular 17 now defaults new project into using standalone components, meaning there are no modules present by default. I am planning to convert my current widget app into standalone approach in the future. It would be nice it you can create another video tackling this topic.
    2. Another is, how can I test this locally? Is it possible to test it via "ng serve"? Remember we emptied the bootstrap array thats why (maybe) running ng serve does nothing and cannot detect our widget component. The way i can test this currently is by copying the generated files into the public/plain-html folder and running it

  • @jashvithaasy7881
    @jashvithaasy7881 Год назад

    Thank you nice tutorial.. 13:10 u mentioned something like caput syntax.. what is that ?

    • @tootyrnt5533
      @tootyrnt5533 10 месяцев назад

      He said "kabob" syntax, which can also be referred to as kabob casing, which is a casing method where a dash is used for variable names longer than 1 word, for example: hello-world or user-name

  • @HarshilPatel-d8n
    @HarshilPatel-d8n 4 месяца назад

    Is it possible to use Angular library in plain HTML file?

  • @banana828-qf9zn
    @banana828-qf9zn 4 месяца назад

    Cool tutorial and it works... until I want to run it in an HTML. It doesn't generate the runtime.js and I get loads of errors when I try to run the index.html. Anyone got a solution for that?

  • @khanhluan8938
    @khanhluan8938 Год назад

    Hi, if i can use this custom elements to use in different website only with script difined to point to the url of this element ?

  • @sskrishna2711
    @sskrishna2711 8 месяцев назад

    Hi, I have one issue and below is a usecase.
    In child application, when clicked on an icon, I am invoking a component based on a route and using the router parameter in the invoked component . After creating custom element for this and using in parent app, and on click of the button, its redirecting to the new route, but child app is not able to fetch the router parameter. Any solution to this.

  • @FernandoDiegoSantillanVaras
    @FernandoDiegoSantillanVaras 8 месяцев назад

    can you teach the example with Angular 17, because dont exists app.module

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

    thank you for this video but unfortunately your code in github and the what you showed us is different and if someone just follow the video their code won't get build.

  • @francoXHardCore
    @francoXHardCore 7 месяцев назад

    gracias genio. no sabia como agregar Atributos.

  • @alnes204
    @alnes204 9 месяцев назад

    Sadly dont work in Angular 17, like all the others Tutorials ive found.... :-/