Components: Does not setup import angular-material.css to Material 2?

Created on 9 Feb 2017  路  8Comments  路  Source: angular/components

Using this setup "https://material.angular.io/guide/getting-started" to Angular 2 we don't have the angular-material.css imported like this http://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.css?

Do I need to import it manually in my index.html?

Thanks.

All 8 comments

Issues are for bugs, feature requests or proposals, use gitter for questions.

You need to do exactly what is described in the guide - https://material.angular.io/guide/theming

I wrote here because it can be a bug.

I did all steps that is described on this guide (https://material.angular.io/guide/getting-started), but I cannot find this file http://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.css imported. I know that Material has a reset css file, but I cannot see it imported.

There is not a single mention of any "http://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.css" (which seems to be a styles file for angular 1 material lib) in that guide, and the theming guide is pretty clear about what you should do if you want to use the pre-built theme

image

Perhaps this could be of help?

@fxck I am searching help from serious people. I am not playing here. If you haven't anything to do, go search.

Thank you. I don't need more for your help.

Same issue for me. I tried to link prebuilt css to index.html file (got 404 but path is correct), import it to my main styles.css file, add it to .angular-cli.json but nothing works.

I followed the guide but nothing works at all.

@f1xpl I didn't solve the problem and I replaced material 2 to materialize 2.

https://www.npmjs.com/package/angular2-materialize

@f1xpl can you link to a minimum repo that shows what you've tried?

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dzrust picture dzrust  路  3Comments

Hiblton picture Hiblton  路  3Comments

alanpurple picture alanpurple  路  3Comments

LoganDupont picture LoganDupont  路  3Comments

MurhafSousli picture MurhafSousli  路  3Comments