Questions tagged [ember-old-router]

Ember.js routing has completely been changed since the first shot. All questions/answers mentioning this tag should not be used for latest ember versions.

Anyone is welcome to migrate these outdated questions/answers and retag them as ember-router.

116 questions
1
vote
2 answers

How should I properly use Ember.js nested routing?

I have this route part, /articles/. I would like to create subroutes here, like / and /list/. This is how I am trying: articles: Ember.Route.extend({ route: '/admin/articles', index: Ember.Route.extend({ route: '/', …
Eduárd Moldován
  • 1,495
  • 3
  • 13
  • 29
1
vote
1 answer

EmberJS: splitting the router into multiple files

Can anyone give a good example of how to break the router up into multiple files, and is there any best practise for doing this?
Charlie
  • 10,227
  • 10
  • 51
  • 92
1
vote
1 answer

How to use multiple router objects in ember.js

I'm still new to ember.js but one part of the framework that I'm yet to see at scale is the basic Ember Router. In a small single page app you have just one router that manages all the state / routes / etc. But as your app grows how do you manage…
Toran Billups
  • 27,111
  • 40
  • 155
  • 268
1
vote
2 answers

Can `insertNewline` invoke a transitionTo?

Sample code for my question is here. It's a simple Ember app that displays the SearchView containing a TextField by default. When the user enters some text and hits Enter, I want to transition to another state (displayUserProfile) passing the value…
bazzel
  • 833
  • 7
  • 22
1
vote
1 answer

Get context of current route

I've implemented a search field in my ember app using ember router. The relevant portion of my router looks like this: question: Em.Route.extend({ route: '/?query=:query' connectOutlets: function(router, context) { query = context['query'], …
klaaspieter
  • 2,665
  • 1
  • 27
  • 32
1
vote
1 answer

Ember.js router, get router from View

I have an ember.js router based application and need to perform some basic logic on an action before transitioning to a different application state. My button's action would look something like
1
vote
0 answers

Emberjs: Router: Get another controller to connect outlets