Instantly share code, notes, and snippets.
This file contains 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
<button local-class="run" type="button" {{on "click" (perform @count)}}>Run the global countToTenTask via a local task</button> |
This file contains 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
<button local-class="run" type="button" {{on "click" (perform this.countToTenTask)}}>Run the global countToTenTask via a local task</button> |
This file contains 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
<button local-class="run" type="button" {{on "click" (perform this.countToTenTask)}}>Run the global countToTenAction via a local task</button> |
This file contains 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
<div>{{this.counter}}</div> | |
<button local-class="run" type="button" {{on "click" (perform this.countToTenTask)}}>Run the local countToTenTask via the perform helper</button> |
This file contains 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
<div>{{this.counter}}</div> | |
<button local-class="run" type="button" {{on "click" this.countToTenAction}}>Run the local action</button> |
SkoebaSteve
/ components.my-component\.hbs
Created
April 1, 2022 13:50
— forked from aoumiri/components.my-component\.hbs
async-stuff-to-do
This file contains 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
<p>{{this.counter}}</p> | |
<button {{on "click" this.doStuff}}>click me</button> |
This file contains 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
<p>{{this.counter}}</p> | |
<button {{on "click" this.doStuff}}>click me</button> |