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

Ember.js - How to properly bind a collection to a view using Ember.Router?

I was previously working with Ember.StateManager and now I'm doing some tests before I finally switch to Ember.Router, but I'm failing to understand how to properly bind my view data from the collection residing in my controller. I have a very…
MilkyWayJoe
  • 9,082
  • 2
  • 38
  • 53
3
votes
1 answer

How you do you remove a view from an outlet by pressing the back button in ember?

With the current version of the ember router, you can define a route handler like so: App.HomeRoute = Ember.Route.extend({ renderTemplate: function() { this.render('home', {into: "application", outlet: "body"}); } }); Older builds would…
Han
  • 1,283
  • 11
  • 25
3
votes
2 answers

Nested routes in Ember.js router and initialState

I'm trying to understand emeber.js routing. I'm not really sure, why this is not valid definition of router Platby.Router = Ember.Router.extend location: 'hash' enableLogging : true root: Ember.Route.extend index:…
Jakub Truneček
  • 8,800
  • 3
  • 20
  • 35
3
votes
1 answer

Ember.js router pushing extra state in Firefox and IE but not in Chrome

Given this basic router definition for an Ember.js application taken straight from the Ember API docs here: http://emberjs.com/api/classes/Ember.Router.html App = Ember.Application.create({ Router: Ember.Router.extend({ root:…
gforce301
  • 2,944
  • 1
  • 19
  • 24
3
votes
1 answer

Disconnecting outlets/removing views when changing states in Ember router?

I have an application with an application template that has two outlets. When I enter the root.index state, I only want one outlet to be connected, and when I enter the root.chats state, I want both outlets to be connected. This works fine when I…
Max Gillett
  • 177
  • 3
  • 14
3
votes
1 answer

How to get a view in an Ember.js Router app

If I need to refer to the view for a specific controller, how would I get it in a router based application. I can get a controller like this App.router.get('myController') But the controller shouldn't and usually doesn't know about the view…
wmarbut
  • 4,595
  • 7
  • 42
  • 72
3
votes
1 answer

EmberJS Routing with Rails

From a rails .erb I can call an Emberjs view and it renders fine: Now if I were to use the core statemanager, I'd make something like this: App.Router = Ember.Router.extend({ …
holtkampw
  • 367
  • 1
  • 13
3
votes
1 answer

Basic Ember.js routing and data load

In the constantly changing world of Ember.js, I'm looking for some help on getting a simple application up and running. I'm trying to get some basic framework down for loading data via JSON through an API with Ember.js, but having trouble getting…
Matt M
  • 71
  • 1
  • 3
3
votes
1 answer

Url contains 'undefined' instead of id after navigating back from 'edit' to 'show'

I read the Ember Application Structure guide and now I trying to create a simple one page application with ember.js. My home page shows a sidebar containing a list of Post objects. When I click on a list-item, on the right of the sidebar I show a…
bazzel
  • 833
  • 7
  • 22
3
votes
2 answers

How can I create a new record using Ember.js and ember-data?

I have compiled this example from various documentation and examples that I've found, but I haven't found a complete example using a Router and ember-data to simply create a new record, so this is my whack at it. The…
dmzza
  • 2,308
  • 1
  • 21
  • 33
3
votes
2 answers

Emberjs Router: state does not change when the url hash is changed

Emberjs core has a new router implementation which extends Ember.StateManager. This is the basic router I have currently implemented (using coffeescript): Emee.set "stateManager", Ember.Router.create location: "hash" enableLogging: true …
Gaurav Shetty
  • 461
  • 4
  • 10
2
votes
1 answer

Ember - Switch from one state to another's nested state

I have the following code. (I'll just copy the router, since the application has arround 500 lines at the moment) What I need, is to switch from state 'rooms' to 'guests.new'. When i get to rooms state, it loads a template where i call the action…
Pablo
  • 1,173
  • 4
  • 18
  • 46
2
votes
1 answer

Ember: Router pre and post hooks connectOutlets

I want to call some function before and after every connectOutlets call in Ember Router. I am not able to find anything in the Ember documentation. Any suggestions ?
Ankur Agarwal
  • 829
  • 9
  • 23
2
votes
1 answer

Emberjs 1.x-pre- Ember.Router and Ember.computed issues

I was reading http://code418.com/blog/2012/03/26/advanced-emberjs-bindings/ and came across Ember.Binding.and for transform which has deprecated in the current emberjs for Ember.computed. I decided to update the old emberjs 0.9.x fiddle…
brg
  • 3,915
  • 8
  • 37
  • 66
2
votes
1 answer

Ember application using Router not working with {{action}} handlebars tag

I'm making a simple Ember application that takes some Tumblr json, lists the posts, and then lets you go to a post detail view with a link back to default posts view. The issue right now is that when using the {{action}} handlebars template tag the…
colinkahn
  • 97
  • 6