Questions tagged [angularjs-ng-route]

The ngRoute module provides routing and deeplinking services and directives for angular apps.

From Angularjs documentation:

The ngRoute module provides routing and deeplinking services and directives for angular apps.

See $route for an example of configuring and using ngRoute

Resources

328 questions
2
votes
1 answer

ngRouter to ui-router

I recently purchased an angularjs template which i am using to build my application, however i noticed that ngRouter was used instead of ui-router which i prefer and am more familiar with. I tried including ui-router and changing all the routes…
2
votes
1 answer

Angularjs Routing parameters not working

I am trying the following code in my Apache server and it's not working (When click the link, nothing happen). It suppose to show title/content for each link. index.html
2
votes
0 answers

ng-route not able to load a view

I am new to angular js. I am trying to build simple app in which if If i load through ng-route it is not able to find view1.html whereas if I load from within same index.html it works. I already went through following post with same issue in which…
Prannoy Mittal
  • 1,525
  • 5
  • 21
  • 32
2
votes
2 answers

Passing parameters to a resolve function

I'm having trouble figuring out how I could pass a parameter to a function that is a part of resolve of ngRoute. In my case I'm doing stuff with tokens. These tokens are typed, so you cannot use the same token for confirming and email and reseting a…
gligoran
  • 3,267
  • 3
  • 32
  • 47
2
votes
2 answers

AngularJS - Partials not getting loaded for paths other than /

I have a simple Angularjs app that uses route provider. The home page renders fine (including the partials), but the partials on other routes aren't getting rendered (the index page loads fine, but the section corresponding to ngView is blank).…
user1452030
  • 1,001
  • 3
  • 10
  • 18
2
votes
1 answer

AngularJS route parameter random number of slashes

I am creating an AngularJS application which will get content from The Guardian API. I am using routing, so when it's at "articles/:articleId", I can get the articleId parameter. In this case, "articles/123" works fine, it returns 123, but The…
Amar Syla
  • 3,523
  • 3
  • 29
  • 69
2
votes
2 answers

Angularjs ng-view does not work

I am trying to create a simple views with angualrjs + ngRoute. Why it doesn't work for me??? Please, can anyone look at my Plunker example, and explain to me what am I doing wrong? my index.html: …
vol4ikman
  • 253
  • 1
  • 4
  • 14
2
votes
2 answers

How to construct Controller name from route in angularjs

I am trying to define a generic route which will handle most of request. Adding a route for each and every feature addition is what I feel not good and not maintainable. So my target is to write a generic route and resolve the decencies dynamically,…
Premchandra Singh
  • 14,156
  • 4
  • 31
  • 37
2
votes
2 answers

Angular ngRoute cannot get view

I am trying to use Angular's routing mechanism in an app, however on clicking on element which should cause the routing I'm getting a cannot GET viewName, where viewName is any view. This is my app.js script file: var app = angular.module('actsapp',…
Alan Grixti
  • 235
  • 3
  • 5
  • 12
2
votes
0 answers

angularjs "Uncaught Error: [$injector:modulerr]"

I checked this AngularJS 1.2 $injector:modulerr but it didnot solve my problem You can find my example here http://jsbin.com/ziroq/1/edit?html,js,console

example 8

Changing views with…

Koray Güclü
  • 2,857
  • 1
  • 34
  • 30
2
votes
2 answers

How to dynamically add routes to angularjs from database

I am creating an NodeJs + AngularJS Application. I have list of Hotels stored into database. I want to create dynamic route based on the hotel name and the load partial view based on property ID. E.g In my database I have: HotelID HotelName …
Manoj
  • 483
  • 2
  • 8
  • 18
1
vote
0 answers

Getting error : Transition Rejection($id: 0 type: 6, message: The transition errored, detail: TypeError: this.parent.parameters is not a function)

Getting error : Transition Rejection($id: 0 type: 6, message: The transition errored, detail: TypeError: this.parent.parameters is not a function) I'm upgrading angualrjs 1.5 to angularjs 1.8.2 Because of angualr js i have to upgrade…
1
vote
0 answers

ngRoute combined with react-router

Is there a way to make AngularJS’s ngRoute work together with react-router ? Main routing is inside the AngularJS application and I tried to add react-router for only a small part of the app but it seems to be conflicting with Angular’s routing.…
Mirel Vlad
  • 2,032
  • 3
  • 27
  • 35
1
vote
1 answer

unable bind using ng-bing in Angularjs

Trying to insert HTML content on the page using ng bind as below but unable to bind it. Script: SS_Mod_App.controller("SS_Ctrl",/*"$interpolate",*/ function ($scope, $http, $location, $window, $sce/*, $interpolate*/) { $scope.dates =…
1
vote
0 answers

Angular js [ng-Route] on form submit using CodeIgniter

I have a 2 different tabs,1st tab contains the form then after the form submit view for next tabs should get loaded and control should pass on the next tab. how to achieve it by using codeignator and angular js? I have tabs like this
  • priya singh
    • 23
    • 1
    • 2