I would like to use bootstrap-notify
in my Angular 7 application.
To do this, I have installed the bootstrap-notify
package (and also @types/bootstrap-notify
).
In my component from where I want to use the notifications I imported the jQuery service like this:
import * as $ from 'jquery';
And now called notify
as described here in the documentation:
$.notify({
// options
message: 'Hello World'
},{
// settings
type: 'danger'
});
The problem is that I get this error:
ERROR in src/app/home/home.component.ts(28,7): error TS2339: Property 'notify' does not exist on type 'JQueryStatic'.
Any idea how to make it work? I couldn't find any Angular (5/6/7) example that is using this package!