@luigi-project/client-support-angular 2.7.2 → 2.7.3-dev.202311250024
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.
- package/README.md +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,8 @@ In your Angular route configuration, you can add in any of the following preload
|
|
|
70
70
|
|
|
71
71
|
```javascript
|
|
72
72
|
{path: 'luigi-client-support-preload',component: Sample1Component,data: { fromVirtualTreeRoot: true }}
|
|
73
|
+
{path: 'luigi-client-support-preload',component: Sample1Component,data: { fromVirtualTreeRoot: : {"truncate": "*/projects"} }}
|
|
74
|
+
{path: 'luigi-client-support-preload',component: Sample1Component,data: { fromVirtualTreeRoot: : {"truncate": "/projects"} }}
|
|
73
75
|
{path: 'luigi-client-support-preload',component: Sample2Component,data: { luigiRoute: '/home/sample2' }}
|
|
74
76
|
{path: 'luigi-client-support-preload',component: Sample2Component,data: { luigiRoute: '/home/sample2', fromContext: true}}
|
|
75
77
|
{path: 'luigi-client-support-preload',component: Sample2Component,data: { luigiRoute: '/home/sample2', fromContext: 'localContext'}}
|
|
@@ -82,6 +84,12 @@ For `data: { fromVirtualTreeRoot: true }`, once we load Sample1Component, this L
|
|
|
82
84
|
luigiClient.linkManager().fromVirtualTreeRoot().withoutSync().navigate({route url});
|
|
83
85
|
```
|
|
84
86
|
|
|
87
|
+
For `data: { fromVirtualTreeRoot: : {"truncate": "*/projects"} }}` or `{"truncate": "/projects"} }}`, this Luigi Client API method is called:
|
|
88
|
+
```javascript
|
|
89
|
+
luigiClient.linkManager().fromVirtualTreeRoot().withoutSync().navigate({truncated url});
|
|
90
|
+
```
|
|
91
|
+
In the above case, the specified string (e.g. `projects`) will be cut off from the beginning of the current micro frontend route before being sent to Luigi Core. This can be useful when the micro frontend is not served under the webroot, but under a subfolder. If the truncate string starts with `*`, the route will be truncated after the first occurrence of the string following `*`.
|
|
92
|
+
|
|
85
93
|
For `data: { luigiRoute: '/home/sample2' }`, this Luigi Client API method is called:
|
|
86
94
|
```javascript
|
|
87
95
|
luigiClient.linkManager().withoutSync().navigate(data.luigiRoute);
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"tag": "client-support-angular"
|
|
20
20
|
},
|
|
21
|
-
"version": "2.7.
|
|
21
|
+
"version": "2.7.3-dev.202311250024",
|
|
22
22
|
"module": "fesm2015/luigi-project-client-support-angular.mjs",
|
|
23
23
|
"es2020": "fesm2020/luigi-project-client-support-angular.mjs",
|
|
24
24
|
"esm2020": "esm2020/luigi-project-client-support-angular.mjs",
|