Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. @Component({
  2. selector: 'some-component',
  3. template: `
  4. <p-dialog header="Title" [(visible)]="display">
  5. Content
  6. </p-dialog>
  7.  
  8. <button type="text" (click)="showDialog()" pButton icon="fa-external-link-square" label="Show"></button>
  9. `
  10. })
  11. export class ModelComponent {
  12. display: boolean = false;
  13. showDialog() {
  14. this.display = true;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement