Can I set width of parent element based on child count

I’d love to do something like the following

<div style="width:{{children.length*280}}px;">

Is it by any chance possible?