Skip to content

roothelpers/RootHelpers.Angular.Alerts

Repository files navigation

RootHelpersAlerts

This is a simple alert component, to help show different level of alerts and easy configurations on how you want it to act. Also, supports confirmation alert. Oh yea! easy to style to follow your own feel.

Installation

npm i root-helpers-alerts

Update your app.module.ts imports array

import { RootHelpersAlertsComponent } from './root-helpers-alerts/root-helpers-alerts.component';

...
imports: [
    AppComponent,
    RootHelpersAlertsComponent,
    ....
  ]

Usage

  <app-root-helpers-alerts [(message)]="message" [dismissable]="true"></app-root-helpers-alerts>
  • message: is a two bounded attribute which takes in IMessage
          export interface IMessage {
          type: MessageType,
          message: string,
          title?: string
          } 
    type can be MessageType.info, MessageType.success, MessageType.error or MessageType.warning

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published