@energycap/components 0.42.4-ECAP-27604-Angular-18.20250205-1244 → 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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +6 -6
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, HttpClientModule } from '@angular/common/http';
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
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.42.4-ECAP-27604-Angular-18.20250205-1244",
3
+ "version": "0.42.4-ECAP-27604-Angular-18.20250206-1040",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
7
7
  },
8
8
  "peerDependencies": {
9
- "@angular/common": ">=17.0.0",
10
- "@angular/core": ">=17.0.0",
11
- "@angular/forms": ">=17.0.0",
12
- "@angular/router": ">=17.0.0",
13
- "@angular/cdk": ">=17.0.0",
9
+ "@angular/common": ">=18.0.0",
10
+ "@angular/core": ">=18.0.0",
11
+ "@angular/forms": ">=18.0.0",
12
+ "@angular/router": ">=18.0.0",
13
+ "@angular/cdk": ">=18.0.0",
14
14
  "@ngx-translate/core": "^15.0.0",
15
15
  "popper.js": "~1.11.1",
16
16
  "lodash": "^4.17.21",