an action happens when the button is clicked yo
This commit is contained in:
parent
02d15d486a
commit
6d3ad0268e
|
@ -0,0 +1,8 @@
|
|||
|
||||
export default Ember.Controller.extend({
|
||||
actions: {
|
||||
someThing: function() {
|
||||
console.log('w00t! something happened!');
|
||||
}
|
||||
}
|
||||
});
|
|
@ -3,11 +3,11 @@
|
|||
<form class="choice-discourse-form form-horizontal">
|
||||
|
||||
<div>
|
||||
<div class='controls'>
|
||||
<div>
|
||||
{{text-field}}
|
||||
</div>
|
||||
<div class='span10 controls'>
|
||||
<button class='btn btn-primary'>something</button>
|
||||
<div>
|
||||
<button class='btn btn-primary' {{action "someThing"}}>something</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue