@Alex_Lvovsky wrote:
Hi there, I'm new in Ember..
And I have a problem that on transition to some route one of my links become disable.
I'll explain.
In my application route I call findAll to bring me 'instance' and in application.hbs I have link-to like this
{{#each instances as |info|}}
{{#link-to 'store.overview' info.connection_name}}{{info.connection_name}}{{/link-to}}
{{/each}}My router looks like this
this.route('store', {path: 'connections/store/:connection_name'}, function () {
this.route('overview', { path: 'overview' },
this.route('dimension', { path: 'dimension/:dim_type' });
});
});The thing is, when I go to overview (e.g. this.transitionToRoute('store.overview', this.get('model.ConnectionName')); ), one of my links is "active", the one that is also in URL
but when I go to dimension ( this.transitionToRoute('store.dimension', node.type); ) it becomes inactiveOverview URL: http://localhost:4200/connections/store/store1/overview
Dimension URL: http://localhost:4200/connections/store/store1/dimension/diaryWhat I did wrong?
Posts: 3
Participants: 2