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
2
votes
2 answers

Ember.Router's transitionTo not updating URL

I implemented the following using latest ember.js (0.9.8.1) by referring to Ember Router not updating url in Chrome and Safari. When I try switch b/w routes via router.transitionTo('route path') method (last 3 lines of the attached snippet), browser…
Ram
  • 41
  • 1
  • 4
2
votes
1 answer

How to add route or state to Ember.Router on runtime?

I have the following Ember.Router on my Application: App.Router = Ember.Router.extend({ location: 'hash', rootElement: '#content', enableLogging: true, root: Ember.State.extend({ route: '/', index:…
codehugger
  • 629
  • 5
  • 16
2
votes
2 answers

Ember.js routing with parameters

I just played with ember routing example. It looks quite interesting. Especially if you are going to build all your application on Ember framework. But parameters in url follows after '#'. That means you can't copy and send a link to someone if…
Saulius
  • 1,736
  • 20
  • 29
1
vote
1 answer

How to avoid ember router to get in connectOutlets

I'm trying to add some basic authentication layer with Ember, to avoid users that are not logged to access the 'restricted' states. The issue is I'm checking for the authentication status in the 'enter' event, but even if I redirect to another route…
jasalguero
  • 4,142
  • 2
  • 31
  • 52
1
vote
2 answers

Ember: Cannot read property 'enterStates' of undefined and textfield update

I have the following problem with ember. I have a table with a set of datas. I have an event that returns me the current element of the table. Then it opens another view by transitioning into a new state and writes the selected table data in a…
Alexander Hauer
  • 73
  • 2
  • 10
1
vote
0 answers

Ember: prevent complete re-routing on parameter change

I'm currently building my first Ember app and I'm using Ember.Router to fetch parameters from the URL, set up the correct state and connect a couple (5) of outlets. What bugs me is that when a single parameter in the URL changes, the Router log…
joostdevries
  • 930
  • 1
  • 6
  • 13
1
vote
2 answers

Ember-data check if model was found in store when deserializing through router

I have an object route in the router (using ember-data with standard REST backend) with connectOutlets that simply deserializes and loads the object and plugs it into the outlet. # inside router action: Ember.Route.extend route:…
Sherwin Yu
  • 3,180
  • 2
  • 25
  • 41
1
vote
1 answer

Ember.js - how do I bind a view to a state manager, and ensure that view is rendered?

I am using a StateManager to control the state of a pop-up modal (e.g., the states are "open.edit", "open.show" and "closed"). I'd like to use a state manager here because the modal is quiet complex and requires it's own transaction (I'm using Ember…
Asha
  • 259
  • 4
  • 8
1
vote
2 answers

Avoid code duplication in Ember.Router?

My Ember.Router grows and grows and it looks like it's gonna maintain more than thirty URL routes soon. Now, a lot of these routes do the same thing, for example connecting a header outlet (in maybe 80% of all the cases). Is there an Ember.js-way to…
kraftwer1
  • 5,253
  • 10
  • 36
  • 54
1
vote
1 answer

Emberjs 1.0-pre router can't find state for path and says router is undefined

This Emberjs router refuses to work with jsfiddle Jquery onDomReady and returns the error ; Uncaught Error: assertion failed: Could not find state for path: "root". However, when i change the jsfiddle jquery settings to onLoad, the page loads but…
brg
  • 3,915
  • 8
  • 37
  • 66
1
vote
2 answers

How to create a "boot" state which all other states much transition through?

I'm building a simple app with a persistent view. This view is always there. The view depends on some data. Entering the application in a different state should ensure that view is present with it's data. I thought the best way to do this would be…
ahawkins
  • 1,164
  • 1
  • 10
  • 15
1
vote
1 answer

ember routing serialize and deserialize params

I have a ember route that uses a date parameter to retrieve a collection of events. I am using the deserialize function to fetch the collection. After the collection is fetched the url changes from "/day/2012-10-08" to "/day/undefined". The events…
Aaron Renoir
  • 4,283
  • 1
  • 39
  • 61
1
vote
1 answer

Ember router with transient states

Inspired by Emberjs: Conditional redirect in router I thought I could use transient states in Ember router, as that is what the 'index' route in that question is - it is entered and immediately transitions to another state without a new event…
EdgifyJP
  • 93
  • 1
  • 5
1
vote
1 answer

How to create an action helper that points to a route with a text value using ember.js

I'm writing a simple sort / pagination controller using ember pre 1.0. I want to change the sort property on the controller when the user clicks a column header on the table. I have a simple action helper that points to my routers sortUser method…
Toran Billups
  • 27,111
  • 40
  • 155
  • 268
1
vote
1 answer

How to build nested routes with ember.js that don't require all arguments?

I have a nested route structure that allows for pagination / sorting / searching that will essentially tweak the ArrayController in some way. The problem I have with the current implementation is that everything is required to get a valid page to…
Toran Billups
  • 27,111
  • 40
  • 155
  • 268