1.1.1 • Published 6 years ago

angular-x-alerts v1.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

DEMO

View on stackblitz

Install

npm install angular-x-alerts

Usage

<!-- add this line on top of your app.component.html -->
<ngx-alert></ngx-alert>
import { AlertModule } from 'angular-x-alerts';

//...

const options = { persist: { success: false, error: true, warn: true, info: true } }

@NgModule({
  imports:      [ 
      BrowserModule,  
      AlertModule.forRoot(options) // <---- HERE
  ],
  declarations: [ AppComponent ],
  bootstrap:    [ AppComponent ]
})

Example

constructor(public alert: AlertService){
    alert.success("Hello World !");
}

API

  • success(message: string)
  • error(message: string)
  • info(message: string)
  • warn(message: string)
1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago