Show / Hide Table of Contents
Edit on GitHub

Callbacks and AngularJS

If your web application uses AngularJS, you should pass a reference to your controller's or service's $scope when calling the init() method:

pki.init({
    ready: onWebPkiReady,
    angularScope: $scope,
    ...
});

If you fail to do so, your callbacks will be called outside AngularJS's "cycles", which might cause changes to the $scope not to be reflected on the view.

Angular2+

If your web application uses Angular2+, you should pass a reference to your component's or service's NgZone when calling the init() method:

pki.init({
    ready: onWebPkiReady,
    ngZone: this.ngZone,
    ...
});
Back to top Copyright © 2015-2020 Lacuna Software