cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Changing the number in label widget everytime the button is clicked

vivekse
13-Aquamarine

Changing the number in label widget everytime the button is clicked

I want to increase the number by 1 inside the label every time a button is clicked. Any help would be appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
vivekse
13-Aquamarine
(To:vivekse)

Actually, I found the answer...

 

var x = 0;

$scope. click = function(){
x = x +1
$scope.setWidgetProp( "label-1", "text", x); };

View solution in original post

1 REPLY 1
vivekse
13-Aquamarine
(To:vivekse)

Actually, I found the answer...

 

var x = 0;

$scope. click = function(){
x = x +1
$scope.setWidgetProp( "label-1", "text", x); };

Top Tags