10.1.3 • Published 3 years ago

lp-dialogs v10.1.3

Weekly downloads
124
License
-
Repository
-
Last release
3 years ago

LpDialogs

LpDialogs shows an ANGULAR MATERIAL confirm and info dialogs.

Tech

Peer Dependencies

"@angular/common": "^10.0.4",
"@angular/core": "^10.0.4",
"@angular/material": "^10.0.2",
"@angular/cdk": "^10.0.2"

Installation

$ npm install lp-dialog

Use

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

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  constructor(private lpDialogsService:LpDialogsService ){
    
  }
  showDialogConfirm(){
       this.lpDialogsService.openConfirmDialog(title: string = 'CONFIRM DELETION', message: string = 'Are you sure?').subscribe((response:boolean)=>{
        
       })
  }
  
  showInfoDialog(){
      this.lpDialogsService.openInfoDialog(message: string, title: string, item?: string).subscribe(()=>{
         
      })
  }
  title = 'cargomusicapp-front';
}
10.1.3

3 years ago

10.1.2

3 years ago

11.1.1

3 years ago

10.1.1

3 years ago

11.0.1

3 years ago

0.0.1

3 years ago