How to use noty library in angular

734 Views Asked by At

Noty is a amazing library for show notification in app that i try to use it now in my angular application

by attention to Noty Documentation i installed it by npm and import in my component

import * as Noty from 'noty';

and use it in ngOnInit

new Noty({
      text: 'NOTY - a dependency-free notification library!',
  }).show();

but when i run application it is not work correctly and just show my message in div.noty_body tag and css classes not used at all

0

There are 0 best solutions below