"Provide" function not found

i want to use “provide” function (from angular2) like this:
provide(TranslateLoader, {
useFactory: (http: Http) => new TranslateStaticLoader(http, ‘assets/i18n’, ‘.json’),
deps: [Http]
})
but it seems has been removed
any help? thanks

There have been a bunch of ng2-translate threads recently. Use the forum search to find things like this.

1 Like

you saved my time THANK YOU!