Are Layout Directives supported by Angular 2 Material Design Components?

前端 未结 3 1858
悲&欢浪女
悲&欢浪女 2021-01-30 10:09

I\'m trying to use the Angular2 Material Design components, and I can\'t get any of the layout directives to work. Example:

According to the examples, this should \"just

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-30 11:00

    Another option is to use angular2-polymer in order to pull in Polymer's iron-flex-layout. It is slightly more limited and has a slightly different API than the Material 1 layout (but the Material 2 layout will also have a different API). But it works now and is supported.

    There is also a guide here.

提交回复
热议问题