an action happens when the button is clicked yo
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user