Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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); };