ember-router Questions

2

Solved

Seems like in the case of nested routes, each route's model hook is called before any of the setupController hooks are called. So how can a child route safely access the parent's model? In my case...
Nablus asked 7/9, 2013 at 2:16

2

Solved

Ember.Route.model has access to the params variable, but Ember.Route.setupController does not. This is troublesome for me, because my path has multiple dynamic segments, and I need to use all of th...
Mitosis asked 19/3, 2013 at 22:51

2

Solved

How can I get my previous router in my current controller. App.MyController = Em.ObjectController.extend({ next:function() { // This is my action helper in HBS this.transitionTo('nextPage'); },...
Caveman asked 21/2, 2013 at 10:58

4

Solved

As the routes file in emberjs is becoming large, I am finding it difficult to keep track of all the routes supported by emberjs app, rake routes in rails gives a list of routes in the rails app, is...
Foretop asked 2/4, 2013 at 5:1

4

Solved

I'm reading guide of Ember.js templates. In the handlebar part of the first example of above link, they used {{#linkTo posts.post post}} but I thought {{#linkTo posts.post}} would work. Wh...
Circinus asked 22/1, 2013 at 8:0

2

Solved

Is there any foolproof way to access controller from a route? <a href="#" class="btn" {{action "someAction" user}}>add</a> App.ApplicationRoute = Ember.Route.extend events: someActi...
Nike asked 9/4, 2013 at 20:19

4

Solved

I'd like an Ember path /clinic/1 to automatically redirect to show the first doctor: /clinic/1/doctor/1. Each clinic has many doctors. Unfortunately if I use this code: var doctor = clinicContro...
Fume asked 13/1, 2013 at 16:6

2

Solved

I am attempting to write a custom express.js based server for an Ember.js app. I am getting along fairly well but I'm constantly getting stuck trying to guess what JSON responses Ember Data is expe...
Geomorphic asked 17/2, 2013 at 15:22

1

I want to abort transition on a particular route and show a modal. This is how my route code looks like: export default Ember.Route.extend({ model: {/* some code here */}, actions: { willTransi...
Tica asked 16/7, 2015 at 18:15

1

Solved

Update: This is a bug not in Ember but in Firefox. See https://bugzilla.mozilla.org/show_bug.cgi?id=301307. I will be deleting this question once the bounty expires (unless someone comes up with a ...
Kasten asked 1/6, 2015 at 13:43

4

Solved

How do I pass environment variables from bashrc to Ember CLI. I imagine a situation where you need stripe api keys or pusher api-keys and you have them in your environment variables in bashrc. How ...
Obvolute asked 16/10, 2014 at 11:31

3

Solved

I have two resources that both have the same sub-resource: App.Router.map(function() { this.resource('post', function() { this.resource('comments', function() { this.route('new'); }); }); t...
Violaceous asked 17/2, 2013 at 17:36

3

Solved

I've got this ember application: Ember : 1.3.2 Ember Model : 0.0.11 Handlebars : 1.3.0 jQuery : 1.9.1 Using this resource map: App.Router.map(function () { this.resource('dimensions', functi...
Pulmonate asked 13/3, 2014 at 11:20

3

Solved

Update #2 I found that when I refactored the filtering logic to take place in a compound computed property within the PostController instead of within individual routes, I was able to get it worki...
Tema asked 30/1, 2013 at 9:57

3

Solved

I'm switching to the new ember router but have a very simple question -- how do I figure out what route I'm currently in? Before you could do something like App.router.get('currentState'), but this...
Erminia asked 10/4, 2013 at 9:12

2

Solved

Assume I have routemap like this: App.Router.map -> @resource 'posts', -> @resource 'post', {path: '/:post_id'} So I have list of posts on /posts route and a single post on posts/2. By d...
Piquant asked 12/5, 2013 at 18:23

1

I am using ember-data and the activemodel adapter with rails and mongoid(mongodb) in the backend. Whenever I make a request to my rails app, emberjs displays the returned data but in chrome develop...
Journalism asked 12/12, 2013 at 13:4

2

If I want to have a URL on an Ember.js website called example1.com that forwards to a URL on example2.com, how would I do that. Can I create a route of example1.com that will perform the forward to...
Nason asked 20/3, 2014 at 18:53

3

I want to display a crumble path with Ember. How can I iterate through the current path? In my opinion there are two approaches: The ember-way EDIT: see my answer below I keep this question up-...
Mortgagee asked 28/2, 2013 at 9:23

1

I have an Ember application composed from 3 routes: router.route('territory', { path: 'localhost/app/territory/:tid' }); router.route('aggregator', { path: localhost/app/territory/:tid:/aggregato...
Treasury asked 6/3, 2013 at 8:55

1

Solved

I have a "Filter" model, and the user can alter this model by clicking on the page. So when the user makes a change to the model, I want to transition to the same route he is currently on, because...
Dunderhead asked 17/1, 2014 at 10:40

2

Solved

When transitioning from one Ember route to another, I am getting the following error: Error: Object in path item_delet could not be found or was destroyed. In the routes' renderTemplate hooks, I...
Attorneyatlaw asked 23/6, 2013 at 17:37

2

Solved

The new ember router has been throwing me for a loop. Does anyone know how to manually triggering a url change when you are (1) NOT using a redirect in the router (2) NOT using the linkTo helper? ...
Suellen asked 7/1, 2013 at 20:30

1

Solved

This is the question that I've had ever since I started studying Ember to see how it might work with Rails. Rails has a routes.rb file with any number of existing routes. Ember has its own separa...
Ratcliff asked 8/8, 2013 at 19:47

1

Solved

When I define a controller action to display dates occuring a particular date, it works correctly, but If I convert that controller action to a property it stops displaying the date occuring on a p...
Swordtail asked 22/7, 2013 at 18:18

© 2022 - 2024 — McMap. All rights reserved.