Skip to content

bug: MatStepperIntl custom implementation not injected #12904

Closed
@frankvdb7

Description

@frankvdb7

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 used

What are the steps to reproduce?

  1. Provide CustomMatStepperIntl in app.module.ts
    { provide: MatStepperIntl, useClass: CustomMatStepperIntl }
  2. Make a lazy loaded module that imports MatStepperModule
  3. The default 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 should MatStepperIntl work different?

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions