import { Component } from '@angular/core' ; import { ObNotificationService , ObPopUpService } from '@oblique/oblique' ; @ Component ( { selector : 'sc-pop-up-sample' , templateUrl : './pop-up-sample.component.html' } ) export class PopUpSampleComponent { constructor ( private readonly popup , private readonly notification ) { } confirm ( text ) { if ( this . popup . confirm ( text ) ) { this . notification . success ( 'You confirmed' ) ; } else { this . notification . warning ( 'You denied' ) ; } } alert ( text ) { this . popup . alert ( text ) ; } prompt ( text ) { const data = this . popup . prompt ( text ) ; this . notification . info ( `You entered ${ data }` ) ; } }