I want to increase the number by 1 inside the label every time a button is clicked. Any help would be appreciated.
Solved! Go to Solution.
Actually, I found the answer...
var x = 0;
$scope. click = function(){
x = x +1
$scope.setWidgetProp( "label-1", "text", x); };
Actually, I found the answer...
var x = 0;
$scope. click = function(){
x = x +1
$scope.setWidgetProp( "label-1", "text", x); };