2.0.0 • Published 11 months ago
@windmillcode/wml-chips v2.0.0
Changelog
v1.0.0
* ensured that there is support for ngx-translate and non ngx-translate features
* to enable translation
export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http);
}
HttpClientModule,
WmlChipsModule
.forChild(
new WMLModuleForRootParams({
ngxTranslateLoaderFactory:HttpLoaderFactory
})
),
* to disable translation
WmlChipsModule
v1.0.1 -> v1.0.2
- atteptimg to fix dependencies
2.0.0
- fixed major problems concerning ngx-translate
// translate
// first make sure to have ONLY ONE in the imports for AppModule
TranslateModule.forRoot({
defaultLanguage: 'en',
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps:[HttpClient]
}
}),
// then
WmlChipsNGXTranslateModule
// for regular
WmlChipsModule