Questions tagged [routeparams]
126 questions
0
votes
1 answer
angular - set/edit route queries(or params) without navigating
Hi I want to use routes to store certain information like pagination data or filter data in the queries (or params). For example I'm on
app/datagrid
and I want to add page=2 and pageSize=10 to it
app/datagrid?page=2&pageSize=10
Is there a way to…

Han Che
- 8,239
- 19
- 70
- 116
0
votes
0 answers
How to get parameter from angular with $routeParams
I want to get some posts by category id. So I need to get a parameter from URL in angular but somehow it seems the route does not call the right controller when I put :id as the parameter in the category route. Here is the controller looks…

Abaij
- 853
- 2
- 18
- 34
0
votes
0 answers
$routeParams undefined in factory angularjs
I have a factory inside angularjs module. This factory return a variable that its used in different controllers. In this factory I am use $routeParams but return undefined even when the param is in url.
My code
.factory("tenant", function…

maikelm
- 403
- 6
- 30
0
votes
1 answer
Dynamic routes on same level in Laravel 5.2 with different controllers
I have a ProfileController and a CategoryController.
I want to show the profiles of my users with the following route:
my.domain.com/firstname.lastname
my.domain.com/firstname2.lastname2
...
Just like Facebook is doing it. Therefore, I want to…

Phil
- 595
- 1
- 3
- 14
0
votes
1 answer
angularjs - how do i pass list to other html?
this is the index.html

J. long
- 3
- 3
0
votes
1 answer
When move to other page by using ngRoute, Angular parameters are unknown in html
I have Menu.html page that shows list of dishes. By clicking the image of each dish, I want to guide the user to dishdetail.html page. But in dishdetail.html, angular parameters are unknown.
Menu.html:
- 115
- 2
- 4
- 15

sahar
0
votes
0 answers
$routeparams parameter when specifying template in ng-include?
I'm trying to use an ng-include in a view that specifies a template. It looks something like this:
The backing js for that template expects some…

subrama6
- 517
- 1
- 5
- 20
0
votes
2 answers
How do I get routeparams in angularjs
I am new to angularjs and below part is always quite confusing to me
angular.module('bookYourSeatApp', [])
.factory('seats', SeatsFactory)
.controller('mainCtrl', MainCtrl);
I want to get routeparams and I tried
function…

raju
- 4,788
- 15
- 64
- 119
0
votes
0 answers
How do you get the routeParam element for the current route?
I'm using react-router 2.7.0. In my route configuration there are nested routes each with their own parameter of the same name. E.g. /route1/:entityId which has a nested route of /route2/:entityId. The params and routeParams props supplied by…

Jack Allan
- 14,554
- 11
- 45
- 57
0
votes
3 answers
angular js $routeParam not working properly
i have used $routeProvide to redirect page from one page to another and in that i am passing some dynamic parameters in url.
it working at one place and not working with another place.
my code : in app.js
app.config(['$routeProvider',…

Nitin
- 881
- 2
- 10
- 37
0
votes
0 answers
Optional route params, NOT query params (@angular/router 3)
More often than not, in a project, certain routes are a requirement, not a developer choice. That said, I agree to those routes too, in the detriment of query params (so called GET variables in php or other server-side languages).
There is a similar…

MrCroft
- 3,049
- 2
- 34
- 50
0
votes
1 answer
Item Details Page using angularjs $routeParams
I am building an online store with angularjs and I am having a hard time figuring out how to link to the details.html and have it display the specific items details. Currently when I click on the view more button url will show the name of the item.…

Travis Davis
- 57
- 7
0
votes
2 answers
Can't get the value of $routeParams in a controller (AngularJs)
my config :
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('tab.chats', {
url: '/chats/:id',
views: {
'tab-chats': {
templateUrl: 'templates/tab-chats.html',
controller:…

Burak Güneli
- 114
- 1
- 11
0
votes
1 answer
Exceeding API request limit
I'm using an API data feed for the first time, and it has a request limit of 1000 per hour. This seemed like a lot and I didn't expect to ever exceed it, but just in testing the site I have.
Could this be anything to do with how it is being…

Paulos3000
- 3,355
- 10
- 35
- 68
0
votes
1 answer
AngularJS $routeParams / service not fetching data from JSON
On test-detail.html page (partial view), data from respective json files are not fetched/displayed, i.e. the controller TestDetailCtrl is called in test-detail.html (as can be seen on a working alert button), but params curly brackets in view…

YaeVo
- 61
- 7