0.1.7 • Published 7 years ago

ng-sweetalert2-slc v0.1.7

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ng-sweetalert2-slc

Sweetalert2 for angular 2 cli application.

Install

npm i -s ng-sweetalert2-slc

Usage

Add the following sections to the .angular.cli.json file.

"styles": [
"../node_modules/sweetalert2/dist/sweetalert2.css"
],
"scripts": [
"../node_modules/sweetalert2/dist/sweetalert2.js"
],

Next, inject SweetAlertService into a component or module:

import { SweetAlertService } from 'ng-sweetalert2-slc';

@Component({
  providers: [SweetAlertService]
})
export class MyComponent {
  constructor(private _swal2: SweetAlertService) {
    this._swal2.success({ title: 'This is a alert' });
  }
}
import { SweetAlertService } from 'ng-sweetalert2-slc';

@NgModule({
  providers: [SweetAlertService]
})
0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago