Comments (12)
Now i need time to figure out a solution, I m comeback when have solution.
Have you example repository?
from ngx-mfe.
Can you load your config when app is starting?
For example:
@NgModule({
imports: [BrowserModule, HttpClientModule],
declarations: [AppComponent],
bootstrap: [AppComponent],
providers: [{
provide: APP_INITIALIZER,
useFactory: loadConfig,
deps: [HttpClient],
multi: true
}]
})
export class AppModule {}
from ngx-mfe.
Yes I can but if forRoot(xxx) is called the providers gets overriden right?
Or what is your idea?
Ps: Great response time ;-)
from ngx-mfe.
Unfotunatly "@angular-architects/module-federation" does not provide already loaded MFE Manifest
from ngx-mfe.
Yes I can but if forRoot(xxx) is called the providers gets overriden right?
yes
Or what is your idea?
I collect all requirements of your problem, and try to form a universal solution that would suit not only your case
from ngx-mfe.
Can you give me more code with your sample ?
Have you example repository?
from ngx-mfe.
You want load MFE Manifest and provide it to forRoot({ mfeConfig: ##here## }) as Promise or Observable, right?
Or you want load all config for configure lib forRoot(##all config as Promise or Observable##)?
from ngx-mfe.
Currently my MFE configuration comes from an Api call.
I would like to use the result for the following configuration NgxMfeOptions['mfeConfig'].
I can make the API call in the APP_INITIALIZER or in a factory but how can I use the result in forRoot or make it known to the MfeModule for configuration?
Or am I completely blind?
from ngx-mfe.
Hi,
currently I have implement microfrontends with @angular-architects/module-federation and using the manifest concept so basically using loadRemoteModule method in routing with type = 'manifest'
If I implement this library is it possible for ngx-mfe to read the manifest directly as anyhow loadManifest is called in the main.ts ?
from ngx-mfe.
Hi, currently I have implement microfrontends with @angular-architects/module-federation and using the manifest concept so basically using loadRemoteModule method in routing with type = 'manifest'
If I implement this library is it possible for ngx-mfe to read the manifest directly as anyhow loadManifest is called in the main.ts ?
Hi, idk, I haven't worked with the mfe concept in production for a long time.
Can you provide me with a code sample or repository, it's hard to answer a question without diving into the problem.
from ngx-mfe.
@out-dev Hi, you can now try to load your config asynchronously [Pull request #19], like this:
MfeModule.forRoot({
mfeConfig: {
useLoader: (http: HttpClient): Observable<MfeConfig> => http.get<MfeConfig>('/manifest.json'),
deps: [HttpClient]
},
})
Update lib to v15.1.0.
Read more here
from ngx-mfe.
Will try it out :-)
from ngx-mfe.
Related Issues (9)
- Multiple mfeOutlet in the same page. HOT 2
- This is not recognized on outputs HOT 2
- directive does not work when Build for production HOT 8
- nx required? HOT 6
- Question: Use your lib with Nx MFE functionality HOT 6
- Any plans for angular v. 16 HOT 2
- OnChanges Not WORk HOT 3
- Hi :-) any plans for angular 17/18? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-mfe.