I'm making a real estate website using angular 2, google maps, etc. and when a user changes the center of the map I perform a search to the api indicating the current position of the map as well as the radius. The thing is, I want to reflect th...
I have a similar route that should load a different view and controller based on whether or not the parameter is a number. Example: /artists/2 should ArtistsIndexController with a view /www/artists/index.html /artists/name should ArtistsProfileCont...
I'm making a resource viewer app, but the problem is that i tried to match when("/!/:resourceUrl"). It works fine if the resource url is something like /path, but how can I make something like a /path/to/the/resource. I don't know h...
I started to use react-router v4. I have a simple <Router> in my app.js with some navigation links (see code below). If I navigate to localhost/vocabulary, router redirects me to the right page. However, when I press reload (F5) afterwards (loc...
Quite odd problem, sorry for asking, i'm quite new to Symfony/Twig. My route requires a mandatory region_id paramenter: ajax_provinces_by_region: pattern: /ajax/region/{region_id}/provinces defaults: {_controller: SWAItaliaInCifreBundle:Ajax...
Can anyone explain how i can access the rails routes/names routes in javascript ? The following are some of the things i tried http://github.com/jsierles/js_named_routes. but no luck....
I would like to return the .state('name') when I change location in angular. From my run() it can return the $state object: .run(function($rootScope, Analytics, $location, $stateParams, $state) { console.log($state); but when I...
Okay, I have two use cases for my question here: I'm working on an application which has a /en/register route. It all works good when I'm at the root and I click a button that does this.router.navigate([this.routeParams.lang, 'register&...
Is it possible to have optional parameters in a Backbone.js route? e.g this: routes: "search/[:query]": "searchIndex" instead of: routes: "search/": "searchIndex" "search/:query": "searchIndex...
I'm building an Address Book to learn angular and have it working nicely until I try to use the route manager. The issue is with loading the angular route manager via require. I'm getting the following error 'Uncaught object'. There...
©2020 All rights reserved.