Setup controller from component


#1

I’m using Power Select within my Own component (say, templates/components/registration-form.hbs) placed in the registration route (say, template/registration.hbs ). Now where to writes the following codes Referred here:

import Ember from 'ember'; export default Ember.Controller.extend({ names: [''], actions: { foo() { } } });

which are supposed to be written in the controller (say, controller/registration.js).


#2

Solved… How to delete this question?