Display 3D label by clicking on the previous label
Hi,
I have almost 20 steps which using 3D Label in 3D eyewear view. I want to show some labels which on clicking will show other labels.
For example, when I click on the Step 1 label, the Step 2 label will be displayed. Then, when I clicked on Step 2 label, the Step 3 label will be displayed. And it will repeat the same process until the last step which is step 20 label displayed.
Do I need to use below code for all 20 steps? Means that, I have to copy and paste the same code with different function name?
$scope.showLabel=function()
{
$scope.view.wdg['3DLabel-2']['visible'] = true;
}
Is there any other simple solution that I can use instead of copying and pasting the same code?
Thank you in advance.

