Skip to content

MdSlider no animation in lazy loaded component #4595

@Smileydude

Description

@Smileydude

Bug, feature request, or proposal:

If you don't import MdSliderModule in a non-lazy loaded module, then the gesture(slide animation) is not present on the lazy loaded module.

What is the expected behavior?

MdSlider only needs to be imported in a component that uses it. Not the root when loaded only in a lazy loaded module.

What is the current behavior?

MdSlider has to be imported in the root when only used in lazy loaded module to get gestures. Slide animation.

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U

What is the use-case or motivation for changing an existing behavior?

Bug

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 4.1.2
Chrome 58.0.3029.110
macOS
typescript 2.3.2
material beta 5

Is there anything else we should know?

Already fixed import order i.e. Can't drag md-slider #4278

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/slider

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions