@energycap/components 0.42.4-ECAP-27604-Angular-18.20250206-0737 → 0.42.4-ECAP-27604-Angular-18.20250206-1040
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
@@ -111,7 +111,7 @@ npm install @ngx-translate/http-loader --save
|
|
111
111
|
Update your `app.module.ts` to use the http-loader:
|
112
112
|
|
113
113
|
```js
|
114
|
-
import { HttpClient,
|
114
|
+
import { HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
115
115
|
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
116
116
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
117
117
|
//...
|
@@ -121,7 +121,6 @@ export function HttpLoaderFactory(http: HttpClient) {
|
|
121
121
|
|
122
122
|
@NgModule({
|
123
123
|
imports: [
|
124
|
-
HttpClientModule,
|
125
124
|
TranslateModule.forRoot({
|
126
125
|
loader: {
|
127
126
|
provide: TranslateLoader,
|
@@ -129,7 +128,8 @@ export function HttpLoaderFactory(http: HttpClient) {
|
|
129
128
|
deps: [HttpClient]
|
130
129
|
}
|
131
130
|
})
|
132
|
-
]
|
131
|
+
],
|
132
|
+
providers: [provideHttpClient(withInterceptorsFromDi())]
|
133
133
|
```
|
134
134
|
|
135
135
|
### 4. Update AppComponent
|
package/package.json
CHANGED