Angular - HTML

Check out this code

1
2
<div fxFlex="100%">
<div [fxFlex]="(100/2) + '%'">

fxFlex – is standard html

[fxFlex] – calls upon angular (or typescript – whatever) to perform a calculation. The results of that calculation will be added to the fxFlex element. But if you use it, then you must provide a calculation [fxFlex]=”100%” will trigger an error.