GavinJoyce / ember-component-inbound-actions

Send actions to Ember.js components
MIT License
65 stars 15 forks source link

nameForm undefined #4

Closed oskarrough closed 9 years ago

oskarrough commented 9 years ago

Hi, this is probably my mistake but couldn't get it to work. Whenever I do this.get('nameForm').send('something'), I get Cannot read property 'send' of undefined.

I can inspect the actionReciever property on my component but see no nameForm on my controller. What did I miss?

// index.hbs
{{ember-youtube title=model.title actionReciever=nameForm}}

// components/my-component.js
import InboundActions from 'ember-component-inbound-actions/inbound-actions';
export default Ember.Component.extend(InboundActions, {
GavinJoyce commented 9 years ago

Can you get the sample app to run? Can you share a jsbin which demonstrates the problem?

oskarrough commented 9 years ago

The sample app works so it must be an error in my code somewhere. I'll investigate! Sorry.

zardaloop commented 7 years ago

I know this issue is closed and is an old issue. However if in case someone like me wants to use it in the route rather than component, don't forget to bind it to the model.nameForm. I always forget that :)