Answers for "Angular testing-->No provider for TranslateStore!"

0

Angular testing-->No provider for TranslateStore!

import {TranslateFakeLoader,TranslateLoader,TranslateModule,TranslateService } from '@ngx-translate/core';

TestBed.configureTestingModule({
      imports: [
        ...
        TranslateModule.forRoot({
          loader: {
            provide: TranslateLoader,
            useClass: TranslateFakeLoader
          }
        })
      ],
      ...
      providers: [
        TranslateService
      ]
Posted by: Guest on July-15-2021

Code answers related to "Angular testing-->No provider for TranslateStore!"

Browse Popular Code Answers by Language