ember-router Questions
1
Solved
Can someone explain the behavior of the router and nested routes in Ember.js?
What are the resulting URL, RouteName, Controller, Route, and Template?
App.Router.map(function(){
this.resource('pr...
Intricacy asked 22/7, 2013 at 5:12
1
Solved
This is a follow-up from Understanding Ember routes.
Master/detail views are great but I'm trying to have a a hierarchical URL route without nesting their templates. However, I still need access t...
Todhunter asked 9/6, 2013 at 18:28
1
Solved
We are writing an application using EmberJS. However we are still new with this framework and we're having a hard time resolving some of what may seem to be straight forward.
The model is pretty s...
Parma asked 10/5, 2013 at 7:8
1
Solved
Given the following Router setup:
App.Router.map(function() {
this.resource('posts', function() {
this.route('new');
this.resource('post', { path: ':post_id' }, function() {
this.route('edit')...
Shellashellac asked 9/5, 2013 at 21:2
3
Question:
How do you do programmatically transition to a new route using the new Ember.js Router?
Background / Context
With the old Ember.js Router you could programmatically transition between ...
Funderburk asked 6/1, 2013 at 19:54
1
Solved
How can I set a link to route with a dynamic segment. According to guide I start with this
window.App = Ember.Application.create()
App.Router.map ->
@resource 'products'
@resource 'product', ...
Craigcraighead asked 30/4, 2013 at 22:8
2
Solved
I have a link that looks like this
index.html#/calendar/year/month
This is how I set up my routes:
App.Router.map(function() {
this.resource('calendar', {path: 'calendar/:currentYear/:currentM...
Alexandrine asked 10/4, 2013 at 12:32
2
Solved
I can't figure out the correct way to handle modal states/views with the new Ember router. More generally, how do you handle states that you can enter and exit without affecting the "main" state (t...
Marshland asked 14/1, 2013 at 22:29
1
Solved
I have a nested route hierarchy that I need for my application to track user model selections. I'm trying to use a main application template and have each route render into a single outlet on that ...
Tangle asked 1/3, 2013 at 17:51
1
Solved
This seems to suggest that the answer is yes:
From Ember Pre1 to Pre4: Multiple dynamic segments per route? Update: What is the allowed syntax for dynamic segments?
... but I just want to confirm...
Socha asked 1/3, 2013 at 19:9
1
Solved
I am using Ember.js and I would like to create a catch all route to send the user back to the root of the application if they navigate to a URL that does not match a resource. (I am using the histo...
Cobos asked 25/2, 2013 at 13:53
2
Solved
[This is about the new 1.0.0-pre.4+ router.]
I want to return from an Ember Route's model method a record that needs asynchronous callbacks to load, for instance because it requires that we load m...
Harry asked 11/2, 2013 at 14:42
1
Solved
I am trying to understand the difference between a Route and a Resource. The way I understand Resource helps to set sub paths of a Route object to another Route Object. But its unclear when i think...
Lemal asked 20/2, 2013 at 6:25
2
Solved
I am trying to set up my Router to use "hashbang" URLs (#!).
I tried this, but obviously it doesn't work:
App.Router.map(function() {
this.route("index", { path: "!/" });
this.route("otherState...
Kaunas asked 18/2, 2013 at 3:47
1
Solved
When i visit one route and then go to another, is where a way to know which route i came from?
I tried document.referrer - this doesn't work. Googling hadn't brought any answers either..
I set up ...
Neurath asked 12/2, 2013 at 11:38
1
Solved
Quick context:
Application view has 2 outlets. One for a toolbar. The other for the routable "main" view hierarchy.
app -- main
\-- toolbar
I need some buttons in the toolbar to trigger events ...
Camper asked 30/1, 2013 at 19:7
2
Solved
I'm trying to understand how to use nested routes.
My code:
App.Router.map(function() {
this.route("site", { path: "/" });
this.route("about", { path: "/about" });
this.resource("team", {path:...
Mvd asked 25/1, 2013 at 21:27
1
Solved
Say I have a list of Action objects, which corresponds to a Ember model. Each has a few properties (timestamps) and a detail attribute, which can can recursively contain more details (arbitrarily d...
Haggadist asked 23/1, 2013 at 3:32
1
Solved
In pre2, suppose I had this application code, outside the router:
var controller = App.MyController.create();
controller.content = [...];
App.get('router').get('applicationController').connect...
Sachsse asked 22/1, 2013 at 10:19
2
Solved
I want to update the <title> tag for the page whenever the location (route) changes. I'm particularly interested in observing App.Router's current route changing - I then want to access the V...
Camass asked 19/1, 2013 at 18:11
2
Solved
I'm confused how to connect outlets with the new router approach.
index.html:
...
<script type="text/x-handlebars" data-template-name="application">
<h4>The application handelbar<...
Shapiro asked 16/1, 2013 at 19:2
1
Solved
I ran into a problem when converting from Ember 1.0-pre2 to latest master (43354a98) and the new router, namely--
If I have a route which loads just the name and ID for a bunch of records, and tri...
Misunderstanding asked 16/1, 2013 at 20:46
2
Solved
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 n...
Degraw asked 3/7, 2012 at 20:20
© 2022 - 2024 — McMap. All rights reserved.