actimeo / ng2-i18next

use i18next with Angular2
MIT License
11 stars 9 forks source link

Cannot compile when using AOT I18nService throws error on compile #12

Open asqwrd opened 8 years ago

asqwrd commented 8 years ago

I can't get I18nService to compile with my project when using ngc (AOT mode) in rc5. It throws an error that says Supplied parameters do not match any signature of call target.

When i look at the generated factory file it looks like it is looking for the parameter in the constructor. I see a line with "new I18nService()" since it is not including a parameter ngc craps out

In the next release is it possible to provide an I18n Module or Provider that works with the modules

leak commented 7 years ago

Is there any progress on AOT compatibility?