Last active
February 21, 2022 18:24
-
-
Save ABooooo/dfc5f5efa30c98d34b4e78c4816c7404 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
// html | |
<textarea rows="6" [value]="newPost"></textarea> // property is element property written in [] | |
<button (click)="methodName()">Btn text</button> | |
// ts | |
export class className { | |
newPost='predefined text for textarea'; | |
methodName() { | |
// do something | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment