How to use ng-style with !important?

Nishant picture Nishant · Sep 16, 2015 · Viewed 12.2k times · Source

Tag Button already has cursor css assigned. I want to override cursor css according to is_active values to disable button. is_active may have values 0 or 1. Following is code for js/html please let me know correct method to apply cursor css to button.

Answer

surajit das picture surajit das · May 26, 2016

ng-style does not support !important.

So alternate is to use ng-class instead of ng-style, it will solve the problem.

If you want to use ng-style specifically then try to write within html itself- please don't try to write within any function.