GavinJoyce/ember-component-inbound-actions

nameForm undefined

Closed this issue · 3 comments

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, {

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

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

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 :)