Convert translateX () binding in Angular 2+
2 answers
This should work
<div [style.transform]="'translateX(' + x + 'px)'">
Edit
It seems like you need to bypass the XSS protection for this .
+5
source to share