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
3
votes
3 answers

Error: [ng:areq] http://errors.angularjs.org/1.2.12/ng/areq?p0=CustomersController&p1=not%20aNaNunction%2C%20got%20undefined

I have practice project in angular js, Description demoangular.html page Logout.html page demoangular page is login page it redirects to logout.html But logout.html doesnt behave properly it shows following error on console Error: [ng:areq]…
Jot Dhaliwal
  • 1,470
  • 4
  • 26
  • 47
3
votes
3 answers

ngRoute doesn't seem to work

I have a web app that doesn't seem to work at all if I try to use ngRoute approach to changing primary page view. The routing config looks like: var app; app = angular.module('genehaxx', ['ngGrid','ngRoute', 'ngSanitize',…
user1969453
2
votes
1 answer

Compare previous history route with current route in angular

Is it possible to get previous back hit route and compare with current route if the user were in current page before in angularjs ng-route? e.g If user is on list feed and click on item then hit default/site back button to current page, the current…
2
votes
1 answer

InternalError: too much recursion

I am new to angularJS . I am stuck on above error.here is my index.html
click
Indrajeet4192
  • 51
  • 2
  • 9
2
votes
1 answer

Angular Js Ng-Route Run Script After Load

i have an issue about Angular JS Ng-Route. I can route, but when the template comes. I should run a script but i cannot do that. Ex. I want to add selectpicker (bootstrap), i can search in it. But when i route that template i can get the…
2
votes
1 answer

Angularjs ng-route, how to avoid reloading the entire page in html5 mode?

If I use hashbang mode there's no problem and transition between routes will be smooth, however if I change the routing mode to Html5 mode transition between the routes won't be as smooth as hashbang mode and we see some sort of blinking in other…
Hamid Behnam
  • 961
  • 1
  • 11
  • 16
2
votes
0 answers

Using Django template inheritance with ngroute - where does `

This is my base.html: {% load static from staticfiles %} {% block title %}Base{% endblock %}
SilentDev
  • 20,997
  • 28
  • 111
  • 214
2
votes
1 answer

emojionearea pickup icon is not displaying with ngRoute angularjs

I'm trying to implement http://mervick.github.io/emojionearea/ using ngRoute of angularjs without success. If I remove the ngRoute routing pages it works without any errors, but if index.html has the source of Emoticons.html. index.html
2
votes
1 answer

After loading a new route old instances of controller is still running

I have a route which is loading a page based on the parameters: .when('/:num/:den', { templateUrl : 'app/views/templates/home.html', controller :"ProductContoller", controllerAs: "product", reloadOnSearch : false }); The problem is any time that I…
2
votes
3 answers

Angular template view with utf-8 chars doesn't work

I try to use "ngroute" to load html templates. Everything works fine, but when I try to show words in Hebrew in the "ng-view", I get only question marks instead of the Hebrew chars (???????????). in the tag I added and…
o k
  • 103
  • 1
  • 3
  • 11
2
votes
1 answer

How to keep Bootstrap panel expanded/collapsed when changing view

I have 3 Bootstrap panels that expand/collapse when their headers are clicked. However when changing to another route id (for example for :id=CarModel1 to id=CarModel2 with /cars/details/:id as route), I want to keep their state as was in the…
mesosteros
  • 1,491
  • 2
  • 18
  • 31
2
votes
0 answers

ngRoute SyntaxError: Unexpected token < not solved by adding "/"

Good afternoon everyone, I started AngularJS a few days ago and, if I usually find my all answers here, I have a mysterious error... Here is the evil error: Error in event for (unknown): SyntaxError: Unexpected …
2
votes
2 answers

ngRoute - multiple controllers in separate files

I am now in the process of changing my web app to single page web app . i followed tutorial from this .link this is a sample script.js // script.js // create the module and name it scotchApp // also include ngRoute for all our routing…
Faiyaz Md Abdul
  • 546
  • 5
  • 14
  • 29
2
votes
0 answers

Implement login page outside of ngroute

I have an angularjs site with ngroute to control the link navigation. I build a body template with bootstrap nav bar an other things, and inside the body of the template I put a ng-view object to show the content of my side. Now I want to wrap a…
Marco Rehmer
  • 1,033
  • 2
  • 12
  • 32
2
votes
0 answers

AngularJS - Best way to share resolve dependency data with nested controller

I have an existing AngularJS route with data from an API that is injected into the page controller (PrimaryController) using a route resolve (myDependency) from ngRoute. I'm adding more functionality to this page that I'm encapsulating in a…
Alex Ross
  • 3,729
  • 3
  • 26
  • 26
1 2
3
21 22