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
51
votes
15 answers

emberjs - how to mark active menu item using router infrastructure

I'm trying to create navigation tabs (taken from Twitter Bootstrap): The active tab is…
coxx
  • 1,019
  • 2
  • 9
  • 7
28
votes
2 answers

Right way to do navigation with Ember

What's the "right way" (or at least the options, if there is no single "Ember way" of doing this) for a navigation sidebar? Should I be looking at ContainerViews somehow, or should I just use the new outlet feature and stick the navigation inside my…
user1499207
  • 305
  • 1
  • 4
  • 7
20
votes
2 answers

Ember.js routing, outlets and animation

It seems like if you want to animate a transition between states using the new Ember.js router and outlets, you're out of luck, since the previous content of an outlet will be destroyed before you have a chance to animate it. In cases where you can…
adamesque
  • 1,906
  • 19
  • 24
17
votes
2 answers

ember Uncaught Error: assertion failed: Emptying a view in the inBuffer state

I get this assertion when run the code below: Emptying a view in the inBuffer state is not allowed and should not happen under normal circumstances. Most likely there is a bug in your application. This may be due to excessive property change …
user1613807
14
votes
3 answers

Ember Router - How to handle 404 (Not Found) routes?

I'm trying to figure out how to handle invalid routes within my application using Ember.Router. Currently if I enter an invalid route, e.g. myapp.com/#FooBarDoesntExist, it will redirect to the index route ('/'). I'd like it if I could define a…
Wesley Workman
  • 917
  • 9
  • 22
13
votes
3 answers

EmberJS: How to transition to a router from a controller's action

I have an action: {{action create target="controller"}} which I have targeted to the bound controller (rather than the router) like this: App.AddBoardController = Ember.Controller.extend create: -> App.store.createRecord App.Board,…
Charlie
  • 10,227
  • 10
  • 51
  • 92
13
votes
2 answers

How *not* to destroy View when exiting a route in Ember.js

Regarding the new Ember.js routing system (described here), if I understand correctly, views are destroyed when you exit a route. Is there any way to bypass destruction of views upon exiting a route, so that the state of the view is preserved when…
Panagiotis Panagi
  • 9,927
  • 7
  • 55
  • 103
12
votes
3 answers

Ember.js routing - conditionally prevent route/state change

I'm trying to figure out how to prevent or pause a route change. For my edit screens, if the user navigates away (back button or some other mechanism) when they have unsaved changes, I would like to prompt them to make sure they want to leave the…
Wesley Workman
  • 917
  • 9
  • 22
11
votes
3 answers

Ember-Data: How do "mappings" work

I'm currently trying to put something together with ember + emberdata + router + asp.net web api. Most of it seem to work, however I stuck in an error message I get when ember-data tries to findAll through the adapter for my models. In my backend I…
10
votes
3 answers

Emberjs: Conditional redirect in router

Is there a way to have a conditional redirect in the Ember.js Router, without breaking internal consistency of the router?
Jo Liss
  • 30,333
  • 19
  • 121
  • 170
9
votes
1 answer

Ember.js: Whats the difference between Router / Route and StateManager / State?

It seems like older examples of routing use StateManager and newer examples use the concept of Router. What is the difference and why you would use one over the other?
radixhound
  • 2,190
  • 2
  • 18
  • 23
7
votes
3 answers

Ember.js with Twitter Bootstrap Modal

I have setup my application to use the ember routing architecture. My index pages looks like this (for simplicity sake) script(type='text/x-handlebars', data-template-name='application') div.container {{outlet}} and my ember app like…
WallMobile
  • 1,939
  • 1
  • 20
  • 35
7
votes
1 answer

Ember.js - where should interface state be stored?

Is there an official story for where interface state (as opposed to persisted model state) should live in an Ember.js app? In the "Responding to User-initiated Events" part of the Router docs, there's an example of delegating click events to a…
Gabriel Grant
  • 5,415
  • 2
  • 32
  • 40
7
votes
3 answers

Ember router and controller logic

I am curious to know just what logic lies in which layer with respect to the new ember routing and controllers: If we take the route below as an example: step1: Ember.Route.extend route: '/step1' connectOutlets: (router, event) -> …
dagda1
  • 26,856
  • 59
  • 237
  • 450
7
votes
1 answer

Ember.js - CRUD scenarios - Specifying View from within a Route

I've asked a question previously in which I wanted to bind a collection residing in the controller to the list scenario view, however, I've added details and edit templates and views to my structure producing a couple of extra…
MilkyWayJoe
  • 9,082
  • 2
  • 38
  • 53
1
2 3 4 5 6 7 8