@microzord/core 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -31,37 +31,45 @@ An extensive demo is coming soon...
31
31
 
32
32
  ### An example of usage external apps in Angular app
33
33
 
34
- app.module.ts
34
+ app.config.ts
35
35
 
36
36
  ```ts
37
- @NgModule({
38
- imports: [
39
- MicrozordHostModule.register({
37
+ export const appConfig: ApplicationConfig = {
38
+ providers: [
39
+ // ...
40
+ provideMicrozordHost({
40
41
  apps: [
41
42
  {
42
- name: 'react-menu',
43
+ name: 'remote-header',
44
+ load: () => import('my-app-in-react').then((m) => m.MyHeader),
43
45
  },
44
46
  {
45
- name: 'vue-footer-app',
47
+ name: 'remote-footer',
48
+ load: () => import('my-app-in-angular').then((m) => m.MyFooter),
46
49
  },
47
50
  ],
48
51
  }),
49
52
  ],
50
- })
51
- export class AppModule {}
53
+ };
52
54
  ```
53
55
 
54
56
  Usage in application:
55
57
 
56
- ```html
57
- <header microzordApp="react-menu"></header>
58
+ ```ts
59
+ import {Component} from '@angular/core';
60
+ import {MicrozordAppModule} from '@microzord/angular';
58
61
 
59
- <div>Any content</div>
62
+ @Component({
63
+ selector: 'app-root',
64
+ imports: [MicrozordAppModule],
65
+ })
66
+ export class App {}
67
+ ```
68
+
69
+ ```html
70
+ <header [microzordApp]="'remote-header'"></header>
60
71
 
61
- <footer
62
- microzordApp="vue-footer-app"
63
- (hook)="onFooterLifecycleEvent($event)"
64
- ></footer>
72
+ <footer [microzordApp]="'remote-footer'"></footer>
65
73
  ```
66
74
 
67
75
  ## Core team
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microzord/core",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "keywords": [
5
5
  "microfrontends",
6
6
  "single-page-application",