Tagged Questions
19
votes
6answers
36k views
AngularJS dynamic routing
I currently have an AngularJS application with routing built in.
It works and everything is ok.
My app.js file looks like this:
angular.module('myapp', ['myapp.filters', 'myapp.services', ...
7
votes
5answers
5k views
javascript clientside routing/pathing library [closed]
I'm in the need for a routing library to handle my paths for a client side js app.
I'm currently using backbone.js, which while great, is not fully featured enough.
I'm looking for a dedicated ...
21
votes
2answers
10k views
Can angularjs routes have default parameter values?
Can I set a default value of a parameter of a route in angularjs ? Is there a way to have '/products/123' and '/products/' handled by the same route ?
I'm looking to refactor my existing code, which ...
6
votes
4answers
9k views
Angular application config “Uncaught object” error (ngRoute)
I have this simple page:
<!doctype html>
<html>
<head >
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
...
26
votes
4answers
38k views
AngularJS - Animate ng-view transitions
I have 2 html pages, welcome.html and login.html both of which are "inserted" into index.html dependending on the URL via an ngview attribute and router provider, as part of my AngularJS app.
An ...
2
votes
1answer
4k views
AngularJS: can't get html5 mode urls with ui-route $state
I'm using ui-router for state management but I think I'm having trouble with my .htaccess rewrite rules. All my states worked when using /#/account style urls. Now I've enabled html5 mode but my app ...
6
votes
2answers
2k views
Client side routing. How does it work?
I need a client-side routing solution to work with a chrome app. I've researched several and crossroads.js seems like a good fit. When I include it in my html file, it doesn't seem to work; that is, ...
2
votes
1answer
144 views
Nested Routing Behavior for Ember.js
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(){
...
3
votes
4answers
3k views
AngularJS Restful Routing
I'm trying to structure my app using the Restful/Ruby convension /<resource>/[method]/[id]. How I've done it previously when using a server-side MVC framework like CodeIgniter was to dynamically ...
3
votes
3answers
3k views
MeteorJS: Routing with Backbone.js
I'm trying to implement a router with BackboneJS in my MeteorJS app.
When you call the url 'localhost:3000/1' my router stores the id '1' in the session. After that I want to take the id from the ...
2
votes
2answers
1k views
$state transition after rejected promise Angular ui-router
I'm using Angular ui-router and have a resolve function set up for one of my states, before the controller is initialized. I retrieve some data, loop through and match it up the URL stateParam, and ...
2
votes
3answers
1k views
asp.net MVC routing - javascript url 404 errors
While developing my app (asp.net mvc3) locally everything was fine using the VS dev app server. The app was located at localhost/. However, I'm attempting to deploy the application on a IIS 7.5 server ...
1
vote
1answer
772 views
Angular route with html5Mode giving 'Not found' page after reload
I made some Angular routes as shown in the code bellow.
app.config(function($routeProvider, $locationProvider, $provide) {
$routeProvider
.when('/', {
templateUrl: 'home.html',
...
2
votes
1answer
2k views
Angular routes - redirecting to an external site?
In an AngularJS routes file there is the option for an otherwise route, replacing a 404:
$routeProvider
.when(...)
.otherwise({
redirectTo: 'my/path'
});
Is there a way to do this such that the ...
1
vote
5answers
690 views
FOSJsRoutingBundle dont recognize route
Im trying use FOSJsRoutingBundle to generate urls from symfony routes.
I follow the doc.
I include the files in my base.html.twig:
{% block scripting %}
...
<script type="text/javascript" src="{{ ...
1
vote
1answer
220 views
Catch all route parameter
I have a url such as this: http://foo.bar/#/some/other/path
How do I capture "some/other/path" as a route parameter?
I tried this:
var App = angular.module("App", [])
...
1
vote
2answers
819 views
expressjs bind all routes except 2 folders?
In expressjs, how do I bind a route to all urls except /static and /fail
For example, it sound bind to:
/users
/books
/books/anything
but not bind to
/static
/fail
/fail/anything
/static/anything
...
0
votes
1answer
79 views
Sammy.js read route with &,?
Need to be route looks like
#/routeName/?param1=aaaa¶m2=bbb
added to sammy
#/routeName/:param1/:param2
and
#/routeName/?:param1&:param2
none of them works
0
votes
2answers
1k views
Backbone Routes - trigger route on page load
This is a simple question, but I am new to routing and haven't been able to find an answer to this.
I have a Marionette Router (if I intimidate you, its really the same thing as a Backbone Router. ...
0
votes
1answer
1k views
ASP.NET 4.0 WebForms Routing Javascript not works
I'm try to use ASP.NET 4.0 WebForms Routing. Here is my RegisterRoutes function:
void RegisterRoutes(RouteCollection routes)
{
routes.Ignore("{resource}.axd/{*pathInfo}");
...
-3
votes
1answer
161 views
Single page application routing w/ Crossroads & Hasher, by example
I am trying to write my first single-page application. The idea is to have 1 HTML file that contains many <div> tags; where each <div> represents a single web "page". Then the application ...