1.2.3 • Published 5 years ago

ng-fancy-alert v1.2.3

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

NG FANCY ALERT

npm.io

Installation

npm install ng-fancy-alert --save

Step 1. Import NgFancyAlertModule in app.module.ts

import { NgFancyAlertModule } from 'ng-fancy-alert';

imports: [
    BrowserModule,
    NgFancyAlertModule
]

Step 2. Add fancy alert in app.component.ts

<ng-fancy-alert></ng-fancy-alert>
<router-outlet></router-outlet>

Step 3. Call it where you need it with

import { NgFancyAlertService } from 'ng-fancy-alert';

export class HomeComponent implements OnInit {

  constructor(private srv: NgFancyAlertService) { }

  ngOnInit() {
  }

  public infoAlert() {
    this.srv.info({title: 'What is Lorem Ipsum?', message: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500', btnText: 'Nice!', redirect: '/home'})
  }
}

#Notice

Don't use .alert-box-content in global style

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.0.1

5 years ago