1

I have a problem when I use ng2-translate and XHRBackend { provide: XHRBackend, useClass: InMemoryBackendService } in my bootstrap (with import { InMemoryBackendService, SEED_DATA} from 'angular2-in-memory-web-api')

I get exception: "ORIGINAL EXCEPTION: Response with status: 404 Not Found for URL: null"

I think that ng2-translate tries to get data but using "fake" XHRBackend doesn't get anything.

Without this line { provide: XHRBackend, useClass: InMemoryBackendService } everything works fine. Can anybody explain how I can manage to it? I have angular 2 RC4.

Thanks in advance

Egor
  • 2,122
  • 2
  • 21
  • 23

0 Answers0