Angular Elements Introduction & Walkthrough

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

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

  • @maryuser8796
    @maryuser8796 6 лет назад

    Thanks Max, this tutorial is the fourth I've watched about Angular Elements, and the first that actually works in Angular 7! Your explanation also covers everything that might be required, and show the errors when steps are missing. Very useful. Also appreciate the github copy of your example.

  • @codes4gis866
    @codes4gis866 6 лет назад +8

    angular element can now be used outside an angular application

  • @RobWormaldPlus
    @RobWormaldPlus 6 лет назад +1

    Good stuff 👍
    One note - technically, they’re not restricted to only working inside of Angular apps - you could build a bundle and use it anywhere, but you might have to do the bundling work manually (as CLI is set up for apps) - for v7 we’ll make this much easier ( and smaller )
    Thanks for the great videos, it’s appreciated!

    • @academind
      @academind  6 лет назад

      Yep, indeed. Technically, you can use them outside of Angular apps but as you correctly state, it's a) quite some (messy) work and b) super-big since it includes a whole Angular app. And we all know how small (not ;)) these are at the moment. Ivy should make this much better

    • @kimi21q
      @kimi21q 6 лет назад

      do you know any example of how to do this? about using it outside Angular apps =) ty

    • @getdevotional
      @getdevotional 5 лет назад

      Yay! Rob watches Max's videos!!

  • @arijitghosh6378
    @arijitghosh6378 3 года назад

    How are *Angular Elements* different from *Dynamic Components* that we create using the *ComponentFactoryResolver* class?

  • @phillippantaleano2930
    @phillippantaleano2930 4 года назад

    it would be nice if you could go over using slots in detail

  • @chesminsky
    @chesminsky 6 лет назад

    good, but I can't figure out how to create message like this elements ?

  • @sragopal
    @sragopal 6 лет назад

    could you give Material tags in alert component? for dynamic insertion of material components.

  • @digitalnomadprabhu
    @digitalnomadprabhu 3 года назад

    Hi guys, can someone help me how to add OUTPUT decorator to the element ?

  • @user-ok4mq2qc8r
    @user-ok4mq2qc8r 6 лет назад

    Great Video Max! Seems like Angular Elements now can be loaded via 2 lines of code with out any bootstrapping. Can you please do an updated video on that topic? Big thanks!

  • @patrickdooley4031
    @patrickdooley4031 6 лет назад

    Thanks Max. Great Video. Any Idea if it is possible to inject a service into a component without having to import it? I.e with a string identifier?

    • @academind
      @academind  6 лет назад

      No, the Type is actually required for the injection since it acts as an injection token that tells Angular which class you want to inject.

    • @patrickdooley4031
      @patrickdooley4031 6 лет назад

      Academind thanks.

  • @polatay7659
    @polatay7659 6 лет назад

    Great stuff man, just wondering if scope works for inputs/outputs? say from parent to the dynamically loaded element vice versa. But i believe the prepared angular element can connect to ngrx store once loaded, so i guess this is going to be very useful

    • @academind
      @academind  6 лет назад

      input/ output works and since we pass an injector, even dependency injection works and you can indeed connect Angular elements to services (and therefore NgRx) of your main Angular app. But we'll probably also see some improvements/ some further development regarding that.

  • @rahul34628
    @rahul34628 6 лет назад

    Great video.....I follow every step got error as "Failed to construct HtmlElement "."please use the new operator,tgis dom object constructor cannot be called as function."

    • @rahul34628
      @rahul34628 6 лет назад

      No error after restart of server.cool

  • @christians7710
    @christians7710 6 лет назад

    For everyone encountering this error: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function
    Stop your server and start it again => ng serve. It should work now
    If not (like in my case...) try changing the target in tsconfig.json to "es2015" and restart the server.
    If you still get this error try entering npm install and audit it, restart the server.
    Now the error is gone.

  • @stannone7272
    @stannone7272 6 лет назад

    Interesting technic. Nice to know!

  • @peterp7470
    @peterp7470 6 лет назад

    It was really helpful, thank you!

    • @academind
      @academind  6 лет назад

      That's great to hear - thank YOU!

  • @ankitbhanderi2424
    @ankitbhanderi2424 6 лет назад

    Awesome... @max

  • @hansschenker
    @hansschenker 6 лет назад +1

    Max Do not forget the enhancements in @angular/schematics !! :-)

    • @academind
      @academind  6 лет назад +1

      I'll probably take a look at that in a separate video some time :)

  • @samillee
    @samillee 6 лет назад

    Very good - 좋네요.

  • @tobiasgruber6376
    @tobiasgruber6376 6 лет назад

    Great video! Always wondered how to create custom HTML-Elements :)

    • @academind
      @academind  6 лет назад +1

      So great to read that you like the video Tobias, thank you for your comment!

  • @vinayakkaviskar3559
    @vinayakkaviskar3559 6 лет назад

    Hello Max, thank you so much for the update and all your content. I am facing an issues in using web-components from Polymer library into my angular projects.It is demonstrated in google IO talks of 2017 :- ruclips.net/video/Ucq9F-7Xp8I/видео.html, I even tried by cloning the same repo: github.com/angular/custom-elements-interop.git and tried adding some other webcomponents from webcomponents.org, but no results ...would you please provide some clarification on can we really add webcomponents from third parties like webcomponents.org or vaadin webcomponents into our angular projects?

  • @MartinOckovsky
    @MartinOckovsky 6 лет назад

    Thank you for your great work Max. You are a great guy. Wanna be my friend? :| Lalala.

    • @academind
      @academind  6 лет назад

      Let's be friend! ;-) Thanks for your awesome feedback!

    • @MartinOckovsky
      @MartinOckovsky 6 лет назад

      But I mean it! The friend thing! And the compliment thing.

  • @ibknl1986
    @ibknl1986 4 года назад

    Very good explanation. May Allah(GOD) guide and bless you.