Micro Frontend in Angular using Angular Elements | Micro Frontend

  Рет қаралды 38,214

Fun Of Heuristic

Fun Of Heuristic

Күн бұрын

Пікірлер: 87
@zhandosainabek
@zhandosainabek 27 күн бұрын
Thanks man! You explained everything so simple!
@abhijit4uguru
@abhijit4uguru 2 жыл бұрын
this is pretty helpful and proper base material to understand MFE in angulars. 10/10
@zebcode
@zebcode 4 ай бұрын
It would be great to have an updated version of this showing how it can be done using stand alone components in a newer Angular project.
@vinaykumarmiryala6082
@vinaykumarmiryala6082 2 жыл бұрын
Eagerly waiting for the next video on micro frontend
@shivautube2009
@shivautube2009 16 күн бұрын
I have a question- how can we achieve UI framework agnostic approach in host and MFE Integration...in other words, how can I make an Angular Host app have React/Vue MFEs...vice versa...is web components the way...or we can use module federation as well.. Which is better/easier
@soumighosh5096
@soumighosh5096 2 жыл бұрын
Awaiting for the next part.
@Evika_cutie
@Evika_cutie 2 жыл бұрын
This is pretty simple explanation, I loved it. It works for me :)
@ykarthikeyasharma
@ykarthikeyasharma 5 ай бұрын
Hi, it is helpful. As entrycomponents is deprecated in Angular 16 and in higher versions. How do we create the MFEs
@VivekSharma24290
@VivekSharma24290 5 ай бұрын
Another application to use Angular Elements is we can package any component/package as a Web Component to support "cross-framework".
@dmytrodomaretskyi5757
@dmytrodomaretskyi5757 2 жыл бұрын
Clear explanation. Thx for your job bro
@witty_idipt
@witty_idipt 2 жыл бұрын
Is there a way to track these microfrontends, without using external providers?
@sanjeebsahoo6145
@sanjeebsahoo6145 Жыл бұрын
Thanks Very good and informative video.
@ibrahimkhaleelullah515
@ibrahimkhaleelullah515 Жыл бұрын
I have a question related to MicroFrontend. I have a remote angular application having angular elements. Need to configure the remote application to bundle these web components and expose them so the host application can just reference that in its index.html file. Note: Here the host application is a legacy application and does not understand angular but needs to reference remote-hosted web components in its index.html file.
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
If I understood your question correctly, that's what we're demonstrating in the video. You can create a web component (JS bundle) and run it in any framework or in a simple HTML file.
@ramyabalasubramanian6916
@ramyabalasubramanian6916 10 ай бұрын
Hi. Great video. How can i acheive routing within angular element? If my angular element is an application in most cases it will have routing.
@shaibyasandeep
@shaibyasandeep Жыл бұрын
I am trying to render multiple angular elements(angular-6) on another angular application(shell-Angular -15), but only two of them are rendering ...rest are not defined in shell application, do you have any clue , what could be reason ?
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Have you added all the script and tags properly, and make Shure the tags name should be different.
@javidcarlos
@javidcarlos 6 ай бұрын
Loads fine but my css is not appended in Host app . Tried adding in Concat js too . still Doesnt work . can u help here?
@javidcarlos
@javidcarlos 6 ай бұрын
Load images / styles under assets folder
@FunOfHeuristic
@FunOfHeuristic 6 ай бұрын
You can use ViewEncapsulation.ShadowDom in your component so the css will be wrapped in a shadow dom and will be included in your js file
@josileudorodrigues7818
@josileudorodrigues7818 Жыл бұрын
Exist something that I can do to run --hmr with Micro front-end to improve my perf of development?
@manuelcarok
@manuelcarok Жыл бұрын
Hello, did you find a soluction? That you can help me
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Unfortunately we can't do it from base app, as it's not connected directly, but we can configure it in monorepo
@irshadmuhammed7740
@irshadmuhammed7740 6 ай бұрын
The bundled file is not working on angular 17
@subratbhola1770
@subratbhola1770 2 жыл бұрын
really helpfull . Thank you subrat
@dhanushr6172
@dhanushr6172 Жыл бұрын
Great, but is there any performance issues for using react package in angular??
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
There will be some bandwidth issues, if the user has low bandwidth then it might take a little more time to load both angular and react bundles. In the usual scenario it's good to use the same framework. With module federation we can share the framework code between different mfes
@dhanushr6172
@dhanushr6172 Жыл бұрын
​@@FunOfHeuristic waiting for more videos :)
@sureshveeramalla963
@sureshveeramalla963 2 жыл бұрын
Can we add react application with Angular?
@FunOfHeuristic
@FunOfHeuristic 2 жыл бұрын
Yes, you can create a micro frontend in react and plug that to angular
@vukkumsp
@vukkumsp 2 жыл бұрын
Yeah, micro frontend helps to use different libraries/frameworks into a single application. Good idea.
@satishattada
@satishattada Жыл бұрын
Entry components not supporting in latest angular version, what is the alternate for it
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Now it should work without an entryComponent, I will also check and update here.
@ishraq95
@ishraq95 9 ай бұрын
@@FunOfHeuristic not working
@FunOfHeuristic
@FunOfHeuristic 9 ай бұрын
Hey I have updated the code in the repo could you please check if that helps
@ishraq95
@ishraq95 9 ай бұрын
@@FunOfHeuristic It was working. But routing doesn't work..
@JohnManavalan
@JohnManavalan 2 жыл бұрын
What is there in the runtime js. Do we have zone js inside that.
@rameshy2415
@rameshy2415 Жыл бұрын
Nice video on micro ui, have one doubt if my parents app version is angular 9 & child app version is angular 15 will that work?
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Yes
@poojapoojitha9114
@poojapoojitha9114 2 жыл бұрын
Wow nice
@varunkoundal882
@varunkoundal882 Жыл бұрын
Hi , it's not working... Entry components itself is not working in angular 16.. also when i am running a server it is showing me a tree structure instead of index.html
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Now you don't need an entry component, You need to run the server where your index.html is for example dist/
@varunkoundal882
@varunkoundal882 Жыл бұрын
I tried still I am getting a blank page , I tried with exactly you have shown still it's not working for me
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
@@varunkoundal882 if you are not getting any error in console then there is something with directory you are starting your server. By the way you should check the module federation way of creating MFE, it's a lot more efficient than angular elements.
@varunkoundal882
@varunkoundal882 Жыл бұрын
In console I am facing error with custom element define
@mousikeanurag7519
@mousikeanurag7519 2 жыл бұрын
Nice But how can we use ngb pagination or ngb date picker in as angular element.?
@FunOfHeuristic
@FunOfHeuristic 2 жыл бұрын
Just use it as a normal application and export the css, or you can put the css in the base app.
@alessandropanarese2535
@alessandropanarese2535 2 жыл бұрын
Hi thanks for your good video. Could you suggest some guide or book to use as integration of your video, related to how migrate an Angular application in a WebComponent wrapper?
@_pankajkr
@_pankajkr 2 жыл бұрын
Nicely explained. 😊 By the way, audio quality is awesome. Which model of Shure microphone you are using?
@FunOfHeuristic
@FunOfHeuristic 2 жыл бұрын
Shure MV7
@itscodingbere
@itscodingbere Жыл бұрын
How to set the baseurl for my micro front end ?
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Do you mean base url in the base app or in the mfe.
@itscodingbere
@itscodingbere Жыл бұрын
@@FunOfHeuristic Thank you for replying Actually i am trying to make a chatbot with the help of your videos so i wan to make it in such a way it can be integrated in any web application. So my first question is it possible ? Second question about baseUrl i was asking was how can i set the baseurl for my chatbot app i.e micro front end ?
@kavyashreebj5848
@kavyashreebj5848 Жыл бұрын
Is there a way to create Angular Elements as a library and publish it to npm?
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Yes, but there were some limitations. Will get back to this once I find something
@rahoolification
@rahoolification 2 жыл бұрын
Fantastic!
@ojiepermana
@ojiepermana 2 жыл бұрын
i get error when i use [routerlink] in microfrontend. like this NullInjectorError: R3InjectorError(e)[e -> e -> e]: NullInjectorError: No provider for e!. can u help. thanks
@FunOfHeuristic
@FunOfHeuristic 2 жыл бұрын
The video for navigation is inline
@davidlatty
@davidlatty Жыл бұрын
entrycomponents is deprecated for angular 9. Please show that example... --prod is deprecated too ... it is --configuration production i believe
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Entry component is not necessary and now default build is prod build.
@pali122
@pali122 2 жыл бұрын
wont this maybe add douplicated code? like one app vs two microfrontends with poly and vendors
@FunOfHeuristic
@FunOfHeuristic 2 жыл бұрын
It's depends on how you dividing your micro Frontend, and yes it will add some angular or any other framework code per micro FE, but that is negligible to how much benefit we will get out of it, and from 13 we don't need poly in angular so only angular code. The basic app bundled micro FE is only 131 KB.
@nilbristi
@nilbristi 2 жыл бұрын
Nice explanation. Can you guide me on how can I create an angular widget and use/call it an of another angular project? For example just like we use transak or stripe widgets.
@vukkumsp
@vukkumsp 2 жыл бұрын
May be we can keep micro frontend modules as a cdn link throughout the enterprise just like we keep npm, maven libraries in repo.
@magdyelmansy4272
@magdyelmansy4272 Жыл бұрын
how can we use this script in WordPress app
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
This is a web component so you can easily use this with WordPress
@123ankit321
@123ankit321 2 жыл бұрын
Nice guitar !
@witty_idipt
@witty_idipt 2 жыл бұрын
my index.html doesn't show the app-mfe content!
@FunOfHeuristic
@FunOfHeuristic 2 жыл бұрын
Index.html which is created by angular will have angular components details, as you have created this you need to add that in the html file, you can use any html file
@witty_idipt
@witty_idipt 2 жыл бұрын
@@FunOfHeuristic my index.html file is not showing the output, i did everything explained in your video
@FunOfHeuristic
@FunOfHeuristic 2 жыл бұрын
@@witty_idipt any error in the console
@witty_idipt
@witty_idipt 2 жыл бұрын
@@FunOfHeuristic no, everything ran smoothly, just the component is not loading, if i add anything else in html file, it shows, can you share your source code, and any help reagrding this pls
@FunOfHeuristic
@FunOfHeuristic 2 жыл бұрын
Please check the description of the video.
@radharamanyadav3508
@radharamanyadav3508 2 жыл бұрын
Hello i hope you are doing well, can you please provide next video on Micro frontend
@stratvids
@stratvids 2 жыл бұрын
there is nothing about micro frontend in this video, just how to make a basic web component using angular elements. commenting your bootstrap in and out is also unnecessary, you can use bootstrap: environment.production ? [] : [AppComponent], this way when you do a production build you don't bootstrap anything, but if you use ng serve it will
@RajashekarReddydasari
@RajashekarReddydasari 2 жыл бұрын
man i dont know what this video is about. it gives info about how to create angular elements but nothing about mfe. Also the font is very tiny, cant see.
@nanasarathi
@nanasarathi 2 жыл бұрын
Well explained 👍 Thanks for creating this video 🙏 Eagerly waiting for the entire series on micro frontend
@narendrabhadouriya3873
@narendrabhadouriya3873 Жыл бұрын
your code is not working
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Hey if it's not working for the new version of Angular, please have a look on GitHub I have updated the code there
@alnes204
@alnes204 9 ай бұрын
in Angular 17, it still will not work, also your updated Code. @@FunOfHeuristic
@valikonen
@valikonen 2 жыл бұрын
Man, this is not micro frontend, it's just a pseudo web component.....
@steffen01102
@steffen01102 10 ай бұрын
And why not?
@shriramjadhav
@shriramjadhav Жыл бұрын
Angular component animation does not work with Angular Elements!!!!
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Any error you are facing
@brunoccs
@brunoccs 2 жыл бұрын
Whole shit is every programmer from India these days? Can't find a single video about micro frontends without an accent
@burymm
@burymm Жыл бұрын
looks weird
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Implement Micro Frontend in Angular - Explanation and Live Demo
19:46
TheAngularCoder || Gourav
Рет қаралды 47 М.
What is the use of Micro Frontend and its benefits | Micro Frontend
9:12
Angular Module Federation Micro-FE Speed Run
14:41
Jack Herrington
Рет қаралды 17 М.
Standalone Components with Angular Elements to generate Web Components
17:33
Micro-Frontends: What, why and how
9:39
Jack Herrington
Рет қаралды 162 М.
Module Federation and Micro Frontends: The Future of Web Development
4:50
Advanced Angular Elements
11:46
Fireship
Рет қаралды 64 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.