fkolar / microfrontend-st Goto Github PK
View Code? Open in Web Editor NEWMicrofront-end Steel Thread POC
Microfront-end Steel Thread POC
In this repo https://github.com/fkolar/microfrontend-st/tree/master/module-federation-apps/apps/common-req-app
when I try to expose local simple component (DownloadComponen
t) all works but not sure about sharable npm angular modules?
For example like this ?
exposes: {
'./Download': './apps/common-req-app/src/app/download.component.ts',
'./CommonReq': require.resolve("@aribaui/common-req-app")
}
We need to support page-2-page navigation (macrofront-end level as Manfred calls this ) but also support complete page mix up ( microfront-end different component from different team on one page).
We try to develop right now component in isolation, so developer can now rely as much as he can on standard angular-cli process microfrontend-apps/libs
and have the other two repos for creating remote & host module fed. apps.
Like on above picture.
1BX App Team
Framework Team
Angular Lib Development
Angular Webpack development
Questions:
Right now we are relying on @manfredsteyer work angular 9 and some patched libraries
Q: What if. './CommonReq': require.resolve("@aribaui/common-req-app")
is developed and deployed to npm in angular 10? Version conflict.
When you look at DownloadComponent (module-federation-apps/
), this is really simple remote and really elementary usecase which will never be the case in real app.
Q: What if I want to share a component and this has other depenencies? Then in Angular you need whole module to be imported. , then probably sharing just a simple component is out of question.
Q: How do you import dynamically Specific Module from the npm package? Something like you would do with imports ?
->import {MyFeatureModule} from '@aribaui/common-req-app'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.