Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created February 21, 2022 18:18
Show Gist options
  • Save ABooooo/cf630f9a69c36ca16f40911976e810ab to your computer and use it in GitHub Desktop.
Save ABooooo/cf630f9a69c36ca16f40911976e810ab to your computer and use it in GitHub Desktop.
// html
<button (click)="methodName()">Btn text</button>
<p>{{ newPost }}</p>
// ts
export class className {
newPost='';
methodName() {
this.newPost = 'some text';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment