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
0
votes
1 answer

URL serialization does not work after page refresh

I'm facing a problem with emberJS and the Router. My route architecture is the one below : root index app home item display/:id edit/:id When I initialy navigate to display/:id the URL is well written as below…
Thomas
  • 1,410
  • 10
  • 24
0
votes
1 answer

Can EmberJS support default load of substate

I have state like mysite.com/#/index This is the default page loaded on initilization There are other subroutes mysite.com/#/about mysite.com/#/contact If someone types mysite.com/#/about Can I control the loading of substate about ?
sudhanshu
  • 462
  • 5
  • 17
0
votes
1 answer

emjer.js view not reading context

I have the following js, based on the emberjs.com routing tutorial. The var 'wontAppear' wont map in the corrsponding view. Quiz = Em.Application.create({ ApplicationView: Ember.View.extend({ templateName: 'App' }), IntroSettings :…
John Perrin
  • 852
  • 1
  • 8
  • 15
0
votes
2 answers

ember.js routers and connectOutlets

I'm trying to use an already instantiated controller in my ember route. Is it not normal to ever have instantiated a controller and want to use that in a route? I know that if I the application instantiate a controller for me, I can then to…
Hortitude
  • 13,638
  • 16
  • 58
  • 72
0
votes
1 answer

Init application and use Selected value in connectOutlet

I got problem with initialization of application. I create jsfiddle which simply works on my desktop but not on jsfiddle. http://jsfiddle.net/zDSnm/ I hope you will catch the idea. On the beginining od my aplication I have to get some values from…
SiMet
  • 614
  • 7
  • 18
0
votes
1 answer

Can emberjs router states handle events that child cannot handle?

Like a typical Hierarchical state machine, I want to get events that a child state cannot handle but a parent state can, to be handled in parent state. I get the error "could not respond to event xyz in state Y" App.Router =…
sudhanshu
  • 462
  • 5
  • 17
0
votes
1 answer

ember.js routing hierarchy

I would like to have routing hierarchy. So it would be nice if URLs "#/user/123" and "#/user/123/albums" will work. And i want to do that this way: App.Router = Em.Router.extend({ root: Em.Route.extend({ index: Em.Route.extend({ route:…
0
votes
1 answer

ember routing not working how I want

I have 3 views in my router. The index view picks viewtwo as the default. The problem is when I go to viewone or viewthree it goes through the index route! and loads the viewto before then rerouting to whichever I clicked viewone or viewthree and…
user391986
  • 29,536
  • 39
  • 126
  • 205
0
votes
1 answer

ember router error : Object hash has no method 'getURL'

i just switched to ember-latest v1.0.pre-160-g7d62790, from v1.0.pre-42 and now my router is throwing the error : TypeError: Object hash has no method 'getURL' when it is starting up. the app is auto initializing. i've dug into the source and the…
Adam Krawesky
  • 1,313
  • 11
  • 23
0
votes
1 answer

How to wire up an ember.js route with parameter

I have a simple template that loops over a ember-data model. Inside the loop I want to provide a simple anchor tag that passes the id of the element along to the router so I can transition to another ember view. What I have below shows "undefined"…
Toran Billups
  • 27,111
  • 40
  • 155
  • 268
0
votes
2 answers

Ember.js: Share object among Controllers or share controller among each other

For a route /dashboard I have, DashboardController & 2 different named outlets in DashboardView. connectOutlet of /dashboard Route looks like following connectOutlets: function(router) { var appController =…
Nachiket
  • 6,021
  • 6
  • 41
  • 47
0
votes
2 answers

Emberjs Router: view property is not defined on associated controller

I'm trying to move my app to the new Emberjs Router component that uses "outlets". See refs: http://emberjs.com/guides/outlets/ and this: http://codebrief.com/2012/07/anatomy-of-an-ember-dot-js-app-part-i-redux-routing-and-outlets/ How I understand…
Vlad Goran
  • 463
  • 4
  • 11
0
votes
1 answer

Ember.js router events as functions not working

I have set up some basic routing in my app by using the examples at http://emberjs.com/guides/outlets/#toc_the-router Within the root I have some events that trigger from view actions e.g: gotoStepOne:…
hellosmithy
  • 279
  • 1
  • 9
0
votes
1 answer

Ember Router - Load content from different controller on same level

Having two routes (comments, trackbacks) nested within post I try to access content of commentsController from trackbacksController after entering the App directly through /posts/1/trackbacks. Unfortunately it seems like the controller is not fully…
pex
  • 7,351
  • 4
  • 32
  • 41
0
votes
1 answer

Emberjs: Router issues

I am new to Ember but I like it a lot. Currently, I am experiencing with the Router. However, I guess I don't really get it. This is the code I am using (taken from Emberjs's website): App.Router = Ember.Router.extend({ root:…
Andrew
  • 6,254
  • 16
  • 59
  • 93