1.1.1 • Published 7 years ago

angular-x-alerts v1.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 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

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago