-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: MatStepperIntl custom implementation not injected #12904
Comments
What does your |
In this case the constructor doesn't even get called:
|
Can you set the injectable to be provided at the root and seeing if it helps? e.g. |
I tried adding If you look at the |
Along the same lines as angular#7988 and angular#7895. Fixes the consumer-provided `MatStepperIntl` instance not being picked up inside lazy-loaded modules. Fixes angular#12904.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Inject the custom provided
CustomMatStepperIntl
What is the current behavior?
The default
MatStepperIntl
is usedWhat are the steps to reproduce?
CustomMatStepperIntl
in app.module.ts{ provide: MatStepperIntl, useClass: CustomMatStepperIntl }
MatStepperModule
MatStepperIntl
is injected instead (in the lazy loaded module)What is the use-case or motivation for changing an existing behavior?
I want to translate specific labels for the stepper component as per global level and not by lazy loaded module level.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.1.4
Material 6.4.6
Is there anything else we should know?
The
MatPaginatorIntl
works as expected... Why shouldMatStepperIntl
work different?The text was updated successfully, but these errors were encountered: