0.0.10 • Published 4 years ago

ngx-alert-dialog-ldp v0.0.10

Weekly downloads
42
License
-
Repository
-
Last release
4 years ago

Instalação

npm i ngx-alert-dialog-ldp

app.module.ts

    import { BrowserModule } from '@angular/platform-browser';
    import { NgxAlertDialogLdpModule } from 'ngx-alert-dialog-ldp'

    @NgModule({
      declarations: [
        AppComponent,
      ],
      imports: [
      ReactiveFormsModule,
        NgxAlertDialogLdpModule,
        BrowserModule,
      ],
      bootstrap: [AppComponent]
    })
    export class AppModule { }

app.component.ts

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  constructor(
  ){}

  inputvalue = null;

  botoes = [
    {
      class: 'btn-primary',
      click() => console.log('click'),
      value: 'Ok'
    }
  ]
}

app.component.html

<ngx-alert-dialog-ldp 
  [show]="true" 
  titulo="titulo"
  conteudo="conteudo"
  [botoes]="botoes">
  <div>
    <input [(ngModel)]="inputvalue" >
  </div>
</ngx-alert-dialog-ldp>
0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago