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.js Router App Architecture — How to correctly communicate between loosely coupled components

Architecturally speaking, a controller does not know about view (usually) and it certainly doesn't know about some other controllers view. Controllers don't know about other controllers either. Sometimes it is necessary for these loosely coupled…
wmarbut
  • 4,595
  • 7
  • 42
  • 72
2
votes
1 answer

Ember.Router could not respond to event paginateUsers in state root.paginated

I have a fairly large example but the issue is that when I transition to the pagination route the first time -all is good. But if I try to click on another (kicking off the pagination event) I get the error below I don't have a jsfiddle because this…
Toran Billups
  • 27,111
  • 40
  • 155
  • 268
2
votes
2 answers

Ember.js Router based application not loading ember-data object on Page refresh

I am following Router based application structure based on http://emberjs.com/guides/outlets/. I am able to follow, and make it work. But Having issue while loading content when page is showing post (e.g. /#/posts/2), I suspect that it is because,…
Nachiket
  • 6,021
  • 6
  • 41
  • 47
2
votes
1 answer

Current instance of CustomView in Ember.js

How can I retreive the "current instance" of my view (defined as TextView) in Ember.js app? If I get it correctly, the router manages instantiating textView with correct context (I can access it in the handlebars template as {{content}}).…
Pavel S.
  • 11,892
  • 18
  • 75
  • 113
2
votes
3 answers

Find item in Ember ArrayController

What's the proper way to find item in the Ember.js ArrayController? I have set of contacts in the controller: App.contactsController = Em.ArrayController.create({ content:[], }); There are objects in the controller, they are displayed and…
Pavel S.
  • 11,892
  • 18
  • 75
  • 113
2
votes
0 answers

Ember Router dynamic segment globbing

I'm looking for a way to use Rails-routes-like globbing in Ember.Router (1.0pre). My goal is to match a path as a dynamic segment. I'd like to have a route like that (CoffeeScript) : App.Router = Ember.Router.extend location: 'hash' …
Michael Baudino
  • 173
  • 1
  • 7
2
votes
1 answer

Ember.js router and dynamic segments

I have been using Ember's Router (v1.0.pre) with single dynamic segments and really happy with it. So much magic. However, I'm struggeling with multiple dynamic segments: What should serialize()/deserialize() return? How should the transitionTo()…
david8401
  • 379
  • 1
  • 3
  • 11
2
votes
1 answer

Proper way to use parent route parameters with ember-data?

In my app, I am trying to keep the routing structure as close to the API structure as possible, which ember facilitates in the basic case but I am still confused about the following case: (In reference to the example of…
dechov
  • 1,833
  • 1
  • 15
  • 18
2
votes
1 answer

Emberjs route with args fail in some case

In some case I got an issue with the routing url. Here's my router : contacts: Em.Route.extend({ route: '/contacts', index: Em.Route.extend({ route: '/', connectOutlets: function(router, context) { …
ThomasDurin
  • 1,943
  • 2
  • 14
  • 20
2
votes
2 answers

Ember.js get controller of parent route using Router architecture

If I have an application using the Router architecture, how do I get the controller of the parent route? suppose a route like Router: Ember.Router.extend enableLogging: true root: Ember.Route.extend main: Ember.Route.extend …
wmarbut
  • 4,595
  • 7
  • 42
  • 72
2
votes
1 answer

Ember.Select contentBinding in app that uses router

I've got an Ember.js app that uses the Ember.Router structure. My app structure looks something like window.App = Ember.Application.create { #Truncated idea of app, not including application controller or any of that MainController =…
wmarbut
  • 4,595
  • 7
  • 42
  • 72
2
votes
1 answer

Using Bindings with the EmberJS Router?

I'm working with Ember.Router, and one thing I can't figure out is how to bind objects to controllers that the Router is instantiating. For instance, here is a controller class (extended) that the Router will instantiate for a specific route…
Nathan Rutman
  • 2,215
  • 2
  • 21
  • 25
2
votes
1 answer

How to split App.Router to several independent blocks?

My App.Router turns into a huge unmanageable single block of code App.Router = Em.Router.extend({ // 100500 pages of horrible COPY-PASTE gotoBlabla: Ember.Route.transitionTo('blabla'), blabla: Em.Route.extend({ route…
coxx
  • 1,019
  • 2
  • 9
  • 7
2
votes
1 answer

EmberJS - How is find / findAll and the Route.deserialize and Route.serialize related?

Hi in an answer to the wonderful question Ember.js - CRUD scenarios - Specifying View from within a Route find and findAll is mentioned to be used on the Model to automagically deserialize a URL. What does this interface look like, and is it really…
Neppord
  • 33
  • 5
2
votes
1 answer

Emberjs develop a component in isolation with its own routing/states, which can be integrated to main app

I need to develop a component in ember. The component logic is somewhat isolated from main application and can be created as a seperate isolated application, with states and routes within the component. Presently I have root controller of component…
sabithpocker
  • 15,274
  • 1
  • 42
  • 75