0.0.10 • Published 4 years ago
ngx-alert-dialog-ldp v0.0.10
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>