ng-style or style attribute with binding? Which is better? Which is faster? What is the difference?

One time bind is available after Angular 1.3.

You can do this way without depending on third-party libraries:

<div ng-style="::{'background-color': item.color}"></div>

I didn’t measure the performance, but I’m pretty sure that its better than without the colons.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)