SyntaxFix
Write A Post
Hire A Developer
Questions
you can achive this by calling a function also
<div [style.width.px]="getCustomeWidth()"></div> getCustomeWidth() { //do what ever you want here return customeWidth; }