Ecl1pse Armageddon
Ecl1pse Armageddon

Reputation: 391

What should the controller name be for this route?

I have the following route:

"get-started"

However when I create a file named "get_started_controller" in app/controllers (ember app kit) it doesn't seem to be picking up this controller.

export default Ember.Controller.extend({
  personName: "set";

  actions: {
    letsDesign: function() {
      alert('hi');
    }
  }

});

it says "nothing handled the action 'letsDesign' when I have a button bound to that action.

Upvotes: 0

Views: 62

Answers (1)

Kingpin2k
Kingpin2k

Reputation: 47367

i don't think the file name needs _controller, just get_started.js

Upvotes: 2

Related Questions