Created
June 25, 2017 10:20
-
-
Save Armenvardanyan95/405a2ef4a5e929df31dabaee33d397d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Component({ | |
| selector: 'some-component', | |
| template: ` | |
| <p-dialog header="Title" [(visible)]="display"> | |
| Content | |
| </p-dialog> | |
| <button type="text" (click)="showDialog()" pButton icon="fa-external-link-square" label="Show"></button> | |
| ` | |
| }) | |
| export class ModelComponent { | |
| display: boolean = false; | |
| showDialog() { | |
| this.display = true; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment