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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -