HTML
<div> <div class="btn btn-default m-b" ng-if="data.state== '2' " ng-click="c.Popup()"> <img src="workingcode.in"> </div> <br> </div>
Client Controller
function() {
/* widget controller */
var c = this;
c.data.state= 2;
}
Output

How to use "ng-if" in widget Service Portal ServiceNow?
Working Code Edited question July 21, 2023
Sorry, you do not have permission to read comments.