Questions tagged [routeparams]

126 questions
0
votes
1 answer

JavaScript | AngularJS | UI-Router: $urlRouterProvider Redirect With Parameters

The Problem... The Implementer should have the ability to write simple redirects using $urlRouterProvider.when to invoke another state with the same, expected URL-parameters: $urlRouterProvider.when('/hook/route', '/that/other/route'); This should…
Cody
  • 9,785
  • 4
  • 61
  • 46
0
votes
1 answer

Call function from routeprovider (not using resolve)

I'm new to angular and busy with $routeProvider. I want to call a specific function in a controller and give $routeParams (i've found a workaround, but it's not desired. It involves creating a new…
user4563166
0
votes
2 answers

Collection of(multiple) route params

This route config URL: http://server.com/index.html#/Chapter/1/Section/2?search=moby Route: /Chapter/:chapterId/Section/:sectionId would result in: {chapterId:'1', sectionId:'2', search:'moby'} Is it possible however to have a collection of…
kidwon
  • 4,448
  • 5
  • 28
  • 45
-1
votes
0 answers

Next Js Use Prams in nested route

I build application api in next js where i have file structure like api/user/[id]/cars/route.jsx whenver i hit api/user/someid/cars it will give me permenent redirect message status 308 can anybody please give me solution for this
Ammad Dev
  • 1
  • 1
-1
votes
1 answer

Node Express API routing, Id of parent resource not available in req.params

My problem is that I don't get the id of parent resource in req.params in routes of subresources. Come with me ... I'll show you ... Here's the relevant parts in my code: - routes/ - index.js - countries.js - cities.js - controllers/ …
Mohamed Heiba
  • 1,813
  • 4
  • 38
  • 67
-2
votes
1 answer

How to pass encrypted ID as route parameter in Laravel Route Model Binding

I want to pass encrypted ID as route parameter. Currently, I'm using Route model binding and it returns a 404
1 2 3
8
9