Skip to content

Instantly share code, notes, and snippets.

@takuya-nakayasu
Created March 21, 2019 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuya-nakayasu/1ff0fcff98f27f81ba1c9f5f680bae21 to your computer and use it in GitHub Desktop.
Save takuya-nakayasu/1ff0fcff98f27f81ba1c9f5f680bae21 to your computer and use it in GitHub Desktop.
カウンターコンポーネントのテンプレートファイル
<button (click)="increment()">Increment</button>
<div>Current Count: {{ count$ | async }}</div>
<button (click)="decrement()">Decrement</button>
<button (click)="reset()">Reset Counter</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment