Single spa app with Angular and React micro frontends

Поділитися
Вставка
  • Опубліковано 7 лют 2025

КОМЕНТАРІ • 75

  • @DivyaSingh-ni4fm
    @DivyaSingh-ni4fm Рік тому

    Thankyou so much for explaining in such a nice way. Please make more video on how to pass data from react component to angular and how to load both on same page without navigation/eager load on single page.

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

    The best tutorial video for micro frontends. Thank you so much @JS Frameworks, really solved my problem

  • @NIKHILPATTERI
    @NIKHILPATTERI 2 роки тому +1

    Thanks a lot bro. I was searching for this treasure for a whole week. Great work 👍🏻

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

    What an amazing video, congratulations! I just wanted to know if it's possible to run Angular normally without needing the base application.

  • @sabirsayyad6459
    @sabirsayyad6459 5 місяців тому

    Nice MFE explained, however can you let me know how we can create a centeralized Redux store which can be accessible from each MFE's

  • @tydanastydanas5903
    @tydanastydanas5903 4 місяці тому

    I tried to create a root config project and I still can't load the page. I don't know what the problem is. Versions maybe?

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

    my existing application implemented in angular 11, but now i have created micro frontend like above video. but i want to include existing app(angular 11) as well in this micro frontend. Please suggest

  • @DineshRaja7
    @DineshRaja7 3 роки тому +3

    How should we deploy the micro front ends and the root config to a production server, could you please make a video on this?

  • @jeslinjaisan1823
    @jeslinjaisan1823 2 роки тому

    thank you so much for this beautiful explanation.

  • @shridharbaddur
    @shridharbaddur 2 роки тому +1

    Thank you for the video. Its very helpful. I would really appreciate if you post a solution to fix the routing issue in prod mode.

  • @CodeMalayalam
    @CodeMalayalam 2 роки тому

    Very helpful video. Thank you. Keep going 🙌🏼

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

    Thanks for this video, when i tried to click sub apps entire page is loading. it can't be possible with out entire page load ? please suggest

  • @unnikrisb
    @unnikrisb 3 роки тому +1

    Thanks for details in the video. Also can we "serve" angular app locally to test application after creating with single-spa. I am getting an blank page

    • @JSFrameworks
      @JSFrameworks  3 роки тому +1

      we need to add a separate project in angular.json to run the angular app as standalone (pointing to main.ts and separate tsconfig). Please find more details in the below link.
      github.com/single-spa/single-spa-angular/issues/92

    • @larryamisola
      @larryamisola 3 роки тому +2

      I was able to work this one. I share my github link this weekend and provide some steps so that you can follow.

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

    Hi, can you create a video on how to add global styles, font awesome or any css from library in single-spa-angular. Since i upgraded angular version from 8 to 14 and single-spa-angular @7. icons and fonts from library's are not loading on the screen.

  • @YogeshSingh-md8vl
    @YogeshSingh-md8vl 2 роки тому

    How to use angular generated application(ng new app name) with single Spa application(crete-single-spa)? Like i dont want to use angular application generated by create-single-spa. Also angular application generated by single-Spa is not running separately so how to fix this?

  • @swarnnikarajsingh4989
    @swarnnikarajsingh4989 2 роки тому

    If I add more routes other than "**" routes in angular. It doesn't work. Can you please let me know how to implement that.

    • @JSFrameworks
      @JSFrameworks  2 роки тому

      ** should be added as the last option in route configuration

    • @swarnnikarajsingh4989
      @swarnnikarajsingh4989 2 роки тому +1

      @@JSFrameworks
      { path: 'abc/:userId', component: ABCComponent },
      {path:'**',component:EmptyRouteComponent} I did like this

    • @swarnnikarajsingh4989
      @swarnnikarajsingh4989 2 роки тому

      how would one can use first route? angular/abc/someuserId ?

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

    could be good if you have implemented vue parcel as well

  • @jacksparrow_ruless
    @jacksparrow_ruless 2 роки тому

    how to use craco for creating single spa ??

  • @larryamisola
    @larryamisola 3 роки тому +1

    in the production build, how will we do the routing?

    • @JSFrameworks
      @JSFrameworks  3 роки тому +1

      If we use hash style routing, no changes are needed in production, since we use client side routing.

    • @larryamisola
      @larryamisola 3 роки тому +1

      @@JSFrameworks ok got it. I know that there is a documentation in angular regarding setting up a routing using '/' in an apache server. Unfortunately, I cannot set it up properly. in case you have a tutorial or you can refer me to any site regarding on this topic. kindly share. Again thanks to your tutorial. I'm looking forward for more single-spa topics.

    • @JSFrameworks
      @JSFrameworks  3 роки тому +1

      We need to configure our server to use index.html as fallback for routes which are not found on server(so that it will use client side routes). For "http-server", it was very easy just make a copy of index.html and rename as 404.html.
      angular.io/guide/deployment#server-configuration covers most of the server configs i think.

    • @larryamisola
      @larryamisola 3 роки тому +1

      @@JSFrameworks thank you! Ill definitely try this out.

  • @nourhanelsayedmahrous615
    @nourhanelsayedmahrous615 2 роки тому

    Thanks for this video, i just have one thing i have an error in my anglaur app , would anyone help me please >>>Uncaught Error: Unable to resolve bare specifier 'angular-app', this is the Error i searched a lot and tried many solutions but it dose not work with me

    • @JSFrameworks
      @JSFrameworks  2 роки тому

      Should be issue with the system-import-map not having details about 'angular-app'

  • @din9019291297
    @din9019291297 3 роки тому

    Hai Brother, in production Mode, How to do the Configuration for the Route ? Any Videos For that

  • @govtsimulia9715
    @govtsimulia9715 3 роки тому

    How load in container our existing angular project

    • @JSFrameworks
      @JSFrameworks  3 роки тому

      single-spa.js.org/docs/ecosystem-angular#installation-1 provides steps how to convert existing angular app to Single spa format. Please check it out.
      Once this step is done, manually add the route and app details in the container.

    • @govtsimulia9715
      @govtsimulia9715 3 роки тому

      I already try that but not work

  • @srihitha4721
    @srihitha4721 2 роки тому

    Could you clarify how to enable that angular route from react app to avoid 404?

    • @JSFrameworks
      @JSFrameworks  2 роки тому

      You need to configure some kind of redirect in your web server (eg. Nginx)to handle 404

  • @javidg4197
    @javidg4197 3 роки тому

    Tys for the video sir..

    • @javidg4197
      @javidg4197 3 роки тому +1

      sir you add one more video . Communicating (passing Data) between angular and Reactjs MFE.

    • @JSFrameworks
      @JSFrameworks  3 роки тому

      Sure

  • @govtsimulia9715
    @govtsimulia9715 3 роки тому +1

    One vdo for angular js and angular 8

    • @JSFrameworks
      @JSFrameworks  3 роки тому

      Sure. will do

    • @govtsimulia9715
      @govtsimulia9715 3 роки тому +1

      @@JSFrameworks plz quick

    • @JSFrameworks
      @JSFrameworks  3 роки тому +1

      Created a sample Single spa with Angularjs and Angular 12.
      github.com/anuroopjoy/single-spa-legacy-angular
      Will do video next week.

  • @NehaChoudhary89
    @NehaChoudhary89 3 роки тому

    Doesn't the page become heavy if use multiple frameworks on the same page and reduces the performance?

    • @JSFrameworks
      @JSFrameworks  3 роки тому

      Single spa uses only the minimal code needed for rendering the apps and only the apps in the current route will be active at the time.

  • @abhijathbenhur2743
    @abhijathbenhur2743 2 роки тому

    Any leads for a react - angulatJS single SPA ?

    • @JSFrameworks
      @JSFrameworks  2 роки тому

      You can try something similar to this. ua-cam.com/video/ZJ8Cvo5UZdM/v-deo.html
      Replace the angular app with React app.

  • @govtsimulia9715
    @govtsimulia9715 3 роки тому

    Can i load my project on cli loading container

  • @godsownplanet
    @godsownplanet 3 роки тому

    Super Class

  • @maicaotri3668
    @maicaotri3668 2 роки тому

    Can we use webpack4 with Single SPA?

    • @JSFrameworks
      @JSFrameworks  2 роки тому

      Yes I think so. Not tried it though

  • @govtsimulia9715
    @govtsimulia9715 3 роки тому

    New vdo when came

    • @JSFrameworks
      @JSFrameworks  3 роки тому

      ua-cam.com/video/ZJ8Cvo5UZdM/v-deo.html

  • @govtsimulia9715
    @govtsimulia9715 3 роки тому

    How implementing angularjs

    • @govtsimulia9715
      @govtsimulia9715 3 роки тому

      I want to cntact u immediately other wise my job is difficulty situation

    • @JSFrameworks
      @JSFrameworks  3 роки тому

      I have not used angularjs in past 4 years, so it is taking time. Will update asap. In the mean time this blog explains how to create the angular/angularjs app,
      medium.com/@ankur.101045/running-angularjs-angular-8-together-using-single-spa-36e8a578bc54

  • @JohnManavalan
    @JohnManavalan 3 роки тому

    Super

  • @Mykhailo-e8i
    @Mykhailo-e8i 2 роки тому

    Very useful video, time also to work on English pronunciation😉😉

    • @JSFrameworks
      @JSFrameworks  2 роки тому

      Has always been my weak point 😊.

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

    Uncaught TypeError: application '@react-app/react-app' died in status LOADING_SOURCE_CODE: Cannot read properties of undefined (reading 'ReactCurrentOwner')
    at 20 (react-jsx-runtime.production.min.js:9:270)
    at o (bootstrap:19:22)
    at 848 (jsx-runtime.js:4:20)
    at o (bootstrap:19:22)
    at single-spa-react.js:1:6716 this error i am getting

  • @abidmabdelaziz
    @abidmabdelaziz 2 роки тому

    Followed this smoothly up until adding Angular MFE. The CLI didnt give me option to add routing and once the Angular App was added it didnt have the necessary main.single-spa.ts.

    • @JSFrameworks
      @JSFrameworks  2 роки тому

      Hope you were using the create-single-spa CLI and added angular as an application from that. Should be some environment setup issue.

  • @YogeshSingh-md8vl
    @YogeshSingh-md8vl 2 роки тому

    How to use angular generated application(ng new app name) with single Spa application(crete-single-spa)? Like i dont want to use angular application generated by create-single-spa. Also angular application generated by single-Spa is not running separately so how to fix this?

    • @JSFrameworks
      @JSFrameworks  2 роки тому

      This thread contains some solutions. Please try
      github.com/single-spa/single-spa-angular/issues/92#issuecomment-509393411