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

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -