How to center vertically with Angular Flex Layout?

后端 未结 3 583
迷失自我
迷失自我 2020-12-30 02:35

I\'ve created a simple login component and I\'d like to vertically center, but I\'m not sure how to achieve this using the Angular Flex Layout library.

app.component

3条回答
  •  借酒劲吻你
    2020-12-30 03:15

    You have to specify the height of the fxLayout (Edited)

    Login

    CSS

    .row-height {
        height: 100%
    }
    

提交回复
热议问题