"Provide" function not found


#1

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


#2

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


#3

you saved my time THANK YOU!