components icon indicating copy to clipboard operation
components copied to clipboard

Md - slider is not showing.

Open param-bnb opened this issue 9 years ago • 6 comments

I have added hammer.js. i just added < md-slider > </ md-slider >.. Other components are working fine..

Do you have any suggestions?

param-bnb avatar Mar 29 '17 14:03 param-bnb

Provide a plunker reproduction otherwise none will be able to help you.

fxck avatar Mar 29 '17 16:03 fxck

@param-bnb which version of Angular are you using? I have similar problem, and I'm in Angular 4.

rdelriods01 avatar Mar 30 '17 08:03 rdelriods01

@param-bnb Are there any errors in the console?

EdricChan03 avatar Mar 30 '17 09:03 EdricChan03

Check out this page. Had the same issue then started to read their documentation. I have been one to not read instructions before. But this helped me as I also was on Angular 4.

https://material.angular.io/guide/theming

If the theming is not not linked in then it will not show the slider as there is no css to do so. they give you several prebuilt files or you can make your own.

NOTE:: Hint for your class you will need class="mat-app-background" this would be put on the body normally

Hope this helps Andy

AndyHaas avatar Mar 31 '17 12:03 AndyHaas

The latest release will log a warning if a theme is missing, so hopefully that will make issues like this easier to diagnose.

jelbourn avatar Apr 09 '17 02:04 jelbourn

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.