ng-bootstrap/ng-bootstrap.github.io

About the self closing alert

alissonssz opened this issue · 0 comments

Hi guys,

I'm using angular 5.2 and ng-bootstrap 2.0 in my project. And I'm facing one issue with self-closing alert. Specifically with debounceTime method.

The following peace of code from the demo:

this._success.pipe(debounceTime(5000)
    ).subscribe(() => this.successMessage = null);

Print on my prompt: "The 'this' context of type 'void' is not assignable to method's 'this' of type 'Observable<{}>'."