1.0.4 • Published 3 years ago

@lhn/mat-alert v1.0.4

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

@lhn/mat-alert

NPM

GitHub tag (latest by date) npm NPM Codacy Badge

Dependencies

  • @angular/core@>=6.0.0
  • @angular/common@>=6.0.0
  • @angular/material@>=6.0.0

Usage

Add MatAlertModule to the imports section of the NgModule you want to use:

import { MatAlertModule } from '@lhn/mat-alert';
 
@NgModule({
 // ...
 imports: [
   // ...
   MatAlertModule,
 ]
})

Inject the service into the component:

import { MatAlert } from '@lhn/mat-alert';
 
@Component({
  // ...
})
export class AppComponent {
  constructor(private alert: MatAlert) {}
  // ..

  public showAlert() {
    this.alert.show('Message title', 'Message content (<em>supports HMTL</em>)', {
      buttonText: 'Great!',
      buttonTheme: 'accent',
      raisedButton: true,
    });
  }
}
1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago