angular - Bind translateX transform in Angular2/4 -
how can 1 bind transform: translatex()
style in angular 2/4?
what i've tried:
<div [style.transform]="translatex({{x}})">
and
<div [style.transform.translatex.px]="x">
this should work
<div [style.transform]="'translatex(' + x + 'px)'">
edit
it seems necessary bypass xss protection work.
Comments
Post a Comment