Wednesday
Hello. I'm starting with Alfresco ADF and configuring a simple application in Angular. After installing and importing the necessary modules, any core component I try to place in the view gives me the error TypeError: this.customLoader.setDefaultLang is not a function.
At first, the problem NullInjectorError: NullInjectorError: No provider for _TranslateService! appeared, but after using in app.config.ts
importProvidersFrom
(
TranslateModule.forRoot(
{
loader:
{
provide: TranslateLoader,
useFactory: createTranslateLoader,
deps: [HttpClient, Router]
},
defaultLanguage: 'en'
})
)
the problem is now
TypeError: this.customLoader.setDefaultLang is not a function.
Explore our Alfresco products with the links below. Use labels to filter content by product module.