@luigi-project/client-support-angular 1.21.1-dev.20220592229 → 1.22.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 +12 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -108,8 +108,17 @@ If you want to use **LuigiReuseRouteStrategy** (it is not enabled by default), y
108
108
  }
109
109
  ```
110
110
 
111
+ ### AutoRouting for modals
111
112
 
113
+ Similarly to other components, modals which have a [modalPathParam](https://docs.luigi-project.io/docs/navigation-parameters-reference/?section=modalpathparam) can trigger a change in the URL when navigation occurs. In the Angular router of your Luigi app, you can enable auto-routing for modals using these parameters:
114
+ - `updateModalDataPath` - if set to `true`, the URL will be updated automatically every time the user navigates within a modal.
115
+ - `addHistoryEntry` - if set to `true`, changes in the modal will also add a history element in the history of the tab.
112
116
 
113
-
114
-
115
-
117
+ For example:
118
+ ```javascript
119
+ {
120
+ path: 'luigi-client-support-preload',
121
+ component: LuigiPreloadComponent,
122
+ data: { updateModalPathParam: true, addHistoryEntry: true }
123
+ }
124
+ ```
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "publishConfig": {
18
18
  "tag": "client-support-angular"
19
19
  },
20
- "version": "1.21.1-dev.20220592229",
20
+ "version": "1.22.0",
21
21
  "main": "bundles/luigi-project-client-support-angular.umd.js",
22
22
  "module": "fesm2015/luigi-project-client-support-angular.js",
23
23
  "es2015": "fesm2015/luigi-project-client-support-angular.js",
@@ -26,4 +26,4 @@
26
26
  "typings": "luigi-project-client-support-angular.d.ts",
27
27
  "metadata": "luigi-project-client-support-angular.metadata.json",
28
28
  "sideEffects": false
29
- }
29
+ }