1.0.6 • Published 7 years ago

ng2dialog v1.0.6

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

simple dialog

#Installation

npm install ng2dialog

and import it

import { Ng2DialogComponent } from 'ng2dialog/ng2-dialog.component';


@NgModule({
  declarations: [ Ng2DialogComponent
  ]

#Usage

  <button (click)="dlg.open = true">open dialog</button>

  <ng2-dialog #dlg >
    <div>This is the content of my dialog dialog</div>
  </ng2-dialog>

or you can add footers / headers

<ng2-dialog #dlg >
  <header>header</header>
  <section>This is the content of my dialog dialog</section>
  <footer>footer</footer>
</ng2-dialog>