Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular flex layout how to conditionally add fxLayoutAlign

this is my code

<div fxLayout="row"
     fxLayoutAlign="end center">

I want to add a condition to fxLayoutAlign. i am not sure how to do this. can anyone help?

i tried the following:

<div fxLayout="row"
     fxLayoutAlign="isCondition? 'start center' : 'end center'">

but nothing is working

Thanks

like image 588
Mukil Deepthi Avatar asked Sep 04 '25 17:09

Mukil Deepthi


1 Answers

This is working for me. I used the propertyBinding in square brackets.

like image 69
Mukil Deepthi Avatar answered Sep 07 '25 02:09

Mukil Deepthi