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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Javascript

mwassmann
5-Regular Member

Javascript

  Hej everyone,

could someone put in an advice on how to get javascript to work with hololens?

even the simplest ones that I tried are failing. (opacity, visibility and so on)

Thanks

Martin

1 ACCEPTED SOLUTION

Accepted Solutions
mwassmann
5-Regular Member
(To:mwassmann)

In the Home.js:

$scope.app.visibility = function(){

$scope.view.wdg['modelItem-2']['visible'] = false;

}

the prefix "app" is important .

In the function you are calling it by:

app.visibility();

View solution in original post

2 REPLIES 2
mwassmann
5-Regular Member
(To:mwassmann)

In the Home.js:

$scope.app.visibility = function(){

$scope.view.wdg['modelItem-2']['visible'] = false;

}

the prefix "app" is important .

In the function you are calling it by:

app.visibility();

For the interval function, especially with cancel interval using "scope.app" doesn't work.

In this line - $interval.cancel($scope.app.intervalPromise); HoloLens just discards it. Is there a limitation in using "cancel" method?

Top Tags