mn-angular-lib 0.0.45 → 0.0.46
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/package.json
CHANGED
|
@@ -2827,6 +2827,10 @@ declare function provideMnConfig(url: string, debugMode?: boolean): Provider[];
|
|
|
2827
2827
|
* providers: [ provideMnComponentConfig(MY_CFG, 'my-component') ]
|
|
2828
2828
|
* Then in the component:
|
|
2829
2829
|
* readonly cfg = inject(MY_CFG)
|
|
2830
|
+
*
|
|
2831
|
+
* The returned config object is **reactive**: when the active locale changes,
|
|
2832
|
+
* all translatable values are re-resolved in place so that templates using
|
|
2833
|
+
* `cfg.someLabel` automatically reflect the new language on the next change-detection cycle.
|
|
2830
2834
|
*/
|
|
2831
2835
|
declare function provideMnComponentConfig<T extends object>(token: InjectionToken<T>, componentName: string, initial?: Partial<T>): Provider;
|
|
2832
2836
|
|