Change componentOptions in UI Version 10.7.X+

We have an AngularJS widget with componentOptions:

c8yComponentsProvider.add({
      ...
      options: {
        groupsSelectable: true,
        noDeviceTarget: false
      }
    });

We need to change the “noDeviceTarget” option if a button is clicked. We used the following code line:

 $scope.componentOptions.noDeviceTarget = true;

In Version 10.7.0.35 it is not working because “$scope.componentOptions” is not defined. How can we access these options?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.