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">
|
<form class="choice-discourse-form form-horizontal">
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class='controls'>
|
<div>
|
||||||
{{text-field}}
|
{{text-field}}
|
||||||
</div>
|
</div>
|
||||||
<div class='span10 controls'>
|
<div>
|
||||||
<button class='btn btn-primary'>something</button>
|
<button class='btn btn-primary' {{action "someThing"}}>something</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue