Share data between Between Your's Micro Frontends | Micro Frontend in Angular

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 44

  • @driedoezoe010
    @driedoezoe010 20 днів тому +1

    thank you! But doesnt this approach make your component 'smart' and not so re-usable anymore? I cleary see the problem with inputs/outputs, but I'm afraid putting the data directly into the component will kill the scalability

  • @childtalentvlogs
    @childtalentvlogs Рік тому +1

    Excellent Explanation. 💯💯💯💯💯💯

  • @navyjot
    @navyjot 2 місяці тому

    Your series is great help!
    I followed it but when i am trying run link like localhost:4000 of mf1 in mf2 i am getting CORS issue, how should i resolve it?

  • @thavasukkannusubramanian40
    @thavasukkannusubramanian40 Рік тому +1

    Thanks for your video. Can we expect React tutorial as well?
    Just want to confirm that mef1 and mef2 both are different projects correct?
    If yes, could you please show me how to combine both projects like where you placed a mef2 bundle in the base of the mef1 projects. It's very helpful for me to understand more easily.

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому +1

      You can put the mfe bundle in cdn and refer to it in the base app. I will make a video series for making an application

    • @thavasukkannusubramanian40
      @thavasukkannusubramanian40 Рік тому

      @@FunOfHeuristic thanks for your kind response waiting for your new videos

  • @chetangupta1988
    @chetangupta1988 8 місяців тому

    Hi, I am using Ngx-translate. I am using native-federation by angular architect. I am facing issue in remote app. How to add ngx-translate at component level. so that it will work while using host app

  • @cristiannass3945
    @cristiannass3945 Рік тому

    thank you for the tutorial, I have a question though.
    How we can Secure the micro front ends app?
    apparently, everyone can call it.

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      There are various ways to control it, one simple way is to check it in your MFE, if it's not expecting data /parameters / auth level then you can block the rendering.

  • @AnkurRai02
    @AnkurRai02 Рік тому

    Thanks for the video, can we create a common angular library to hold reusable components and shared services and data. I tried it but its not singleton. Every web components has its own instance of common library...any thoughts?

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      I am not 100% sure, but by using Module Federation, you can access the service and render the data, making it a common module to hold your data.
      You can check the video on Dynamic Module Federation if you want to know more
      Thanks.

  • @Broski_Rodragweez
    @Broski_Rodragweez 6 місяців тому

    I think you linked to the wrong repo for this video. Can you provide link to the code?

  • @shubhamagarwal8297
    @shubhamagarwal8297 Рік тому

    liked, subscribed

  • @KaushalRaj-kw9cn
    @KaushalRaj-kw9cn 4 місяці тому

    Can you please tell or share some ref. how to create shared service from host app to remote app

  • @josileudorodrigues7818
    @josileudorodrigues7818 Рік тому

    I noticed that you left the in index.html. If I had to pass the value via @input into my app.component.ts which is where the application starts. would that only be possible via the custom tag? or could I pass it via parameters? How would it work?

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      It will work as usual, because when we expose the component through angular elements then we don't need index.html to render it.

    • @josileudorodrigues7818
      @josileudorodrigues7818 Рік тому

      @@FunOfHeuristic Truly, thanks for your attention!

  • @federicobalboa9145
    @federicobalboa9145 11 місяців тому

    What can I use to communicate old frontend in AngularJS to new frontend in angular 16? Module Federation doesn't work with angularJS, neither single-spa, any help? thanks

    • @FunOfHeuristic
      @FunOfHeuristic  11 місяців тому +1

      Browser events(event emitter) will work for you.

    • @federicobalboa9145
      @federicobalboa9145 11 місяців тому

      @@FunOfHeuristic i will try that, thanks!

  • @syedhannan546
    @syedhannan546 7 місяців тому

    How should we pass the access token from host app to mfe?

  • @sanjitmishra
    @sanjitmishra Рік тому

    Please create videos on React as well.

  • @NavyaMalladi-n1u
    @NavyaMalladi-n1u Рік тому +1

    Hi Can u share us the code for 2 mfe's communication

  • @trysometruth
    @trysometruth Рік тому

    Hi and thank you again. I was not able to use this methodology to have a host app host more than one web component (unless, after moving to where the second component is placed, I clicked Refresh on the browser --- then if I moved to where the first component is placed it wouldn't display unless I again clicked Refresh). If possible it would be great if you could expand this tutorial to show hosting multiple Angular web components / elements in a host Angular application.

  • @kavyashreebj5848
    @kavyashreebj5848 Рік тому

    In real time apps, is it a good practice to hold this customElement.js file at some location say in an S3 bucket and then read it from there?

  • @binurajbinz2917
    @binurajbinz2917 Рік тому

    Will this work if I am opening the micro app2 after sending the event from app 1. Here both apps are loaded in browser so able to receive the event

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      No it can receive the event if you are listening to it, what you want is like BehaviourSubject. But you can use session storage in this case and use the same key to grab.

  • @VishalSharma-jz5tt
    @VishalSharma-jz5tt Рік тому

    Hi iam not able to grab event.details please help me
    Eroor says event dont have property detail but i can see it in console

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      Hello, You might be reading the details before it arrives. Please use event?.details, if it helps

  • @newthepanch
    @newthepanch Рік тому

    What about sharing data using services? If i want initiate data on the host and share it between mfe1 and mfe2, how can i do that? Should i crrate the same service on the 3 apps?

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      From host to mfe you can share data by input

    • @newthepanch
      @newthepanch Рік тому

      @@FunOfHeuristic but what if i want to leave all the info available at any time, like a subscription, is there a way to do it?

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      That's what I have shown in the video the pub sub model, you will emit your data wherever you want and can receive it wherever you want.

    • @newthepanch
      @newthepanch Рік тому

      @@FunOfHeuristic but im talking more like a subscription not event emmiter, so i dont need to invoque the component, i send the data to the service, and anyone can subscribe to it, more like a session or a localstorage stuff

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      You can use session storage and locals storage and they will work fine, but not service because it will give you compile time error, because your mfe will not have any idea about your base services.

  • @vvdeepak7240
    @vvdeepak7240 Рік тому

    How to share assets like static images(svg, png) from remote to shell . ?

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      It's always better to host files in CDN, so you can access them throughout your application

  • @VeeraRaghavaGupta
    @VeeraRaghavaGupta Рік тому

    Can you please help know how to pass data from host to mfe and from mfe to host

    • @FunOfHeuristic
      @FunOfHeuristic  Рік тому

      It's normal input output, what ever you can do with normal angular components you can do the same. Think this as normal angular components in this scenario.

  • @naveenrams4558
    @naveenrams4558 10 місяців тому

    Please do it for react