0.0.8 • Published 5 years ago

ngx-alertify v0.0.8

Weekly downloads
30
License
-
Repository
-
Last release
5 years ago

About this lib

This lib support Angular6+ only

it is a wrapper of alertify.js.

Install

  1. npm install ngx-alertify

  2. npm install alertifyjs

  3. add the following style and js to angular.json file:

{
  ...
  "projects": {
    ...
      "architect": {
        "build": {
          ...
            "styles": [
              ...
              "node_modules/alertifyjs/build/css/alertify.min.css",
              "node_modules/alertifyjs/build/css/themes/bootstrap.min.css",
              "node_modules/alertifyjs/build/css/themes/semantic.min.css"
            ],
            "scripts": [
              "node_modules/alertifyjs/build/alertify.min.js"
            ]
          },
          ...
        }
      }
    }
  }
}

4.Inject service to you component where needed

export class AppComponent {
  constructor(private alertifyService: NgxAlertifyService) {
    alertifyService.success('sucess');
  }
}
  1. Call the method by
   alertifyService.success('sucess');
0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.1

5 years ago