Cereal Killer
Cereal Killer

Reputation: 3414

Ember naming for routes and controllers

I have a router like this:

//italian
this.resource('eng', function(){    
    this.route('home');
    this.resource('eng.activity', {path: 'activity'}, function() {
        this.route('insertActivity', {path: 'insert-activity'});
        this.route('listActivities', {path: 'list-activity'});
    });
});

Then i have for example this route: App.EngActivityInsertActivityRoute

Is there a way to use a shorter name?

Upvotes: 0

Views: 36

Answers (1)

chopper
chopper

Reputation: 6709

No. Ember uses convention over configuration, so the route names are automatically generated. You could always use shorter route names in your router

Upvotes: 1

Related Questions