I have a route defined as:
AS.Router.map(function(){
this.resource('analytics', {path: '/analytics'}, function(){
this.route('index', {path: '/'});
this.route('config', {path: '/config'});
);
});
AS.AnalyticsRoute = Ember.Route.extend({
redirect: function() {
this.transitionTo('analytics.index');
}
});
With above config, I am able to load pages :
/#/analytics
--this loads the analytics/index template
/#/analytics/config
--this loads the analytics/config template
but #/analytics/index doesn't load, it just shows the loading gif image. Here is how my templates look like :
analytics:
{{outlet}}
analytics\index:
index
analytics\config:
config
Is there a way I could make url link to #/analytics/index work too without breaking #/analytics?
Thanks, Dee