Using flexbox with angular 2 components

前端 未结 3 770
长情又很酷
长情又很酷 2021-02-05 10:49

I want to update visual side(grid, colors) of my angular 2 application. Old layout was build with bootstrap 4, which I don\'t really need anymore. I decided to go for plain css3

3条回答
  •  醉梦人生
    2021-02-05 11:30

    I fixed this issue by adding styles to component. For example:

    :host {
      display: flex;
    }
    

    :host {} was the key.

提交回复
热议问题