Questions tagged [ngroute]

AngularJS module providing routing, deeplinking services and directives for AngularJS apps.

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

Resources

879 questions
0
votes
1 answer

Angular JS - Change path, Same controller, don't reload scope

I know it's been asked so many times here and I found it too. But it could not solve my problem. Here is the case. I have one AngularJS application. I have a list page. I have a button to add. When I click on add button, a pop-up window will come…
iCode
  • 8,892
  • 21
  • 57
  • 91
0
votes
1 answer

angularjs infinite request loop for $resource

for some reason when I hit a certain route in angular I crash the browser and my node server freaks out making tons of requests: GET /bower_components/bootstrap/dist/js/bootstrap.js?_=1402331354670 200 3ms - 53.96kb GET /js/app.js?_=1402331354671…
Connor Leech
  • 18,052
  • 30
  • 105
  • 150
0
votes
0 answers

It it possible to use ngroute to pull different html pages (not partials)?

Hopefully I can explain this properly. On the Angular tutorial, you can use partials doing this: phonecatApp.config(['$routeProvider', function($routeProvider) { $routeProvider. when('/phones', { templateUrl:…
m0ngr31
  • 791
  • 13
  • 29
0
votes
2 answers

ngRoute: 404 not found after Grunt build

I have an AngularJS project which has two views; /settings and /. The app.js file looks like; .config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) { $routeProvider .when('/', { templateUrl:…
Ashesh
  • 2,978
  • 4
  • 27
  • 47
0
votes
1 answer

AngularJS Route Uncaught object in v 1.2.15 But not in v 1.0.1

I've been trying a ng-route example which works in AngularJS version 1.0.1 but not working in version 1.2.15. I did added the dependency angular-route.js but still getting uncaught object error. The following is my example. It consists of 4 files…
EuWern
  • 123
  • 7
0
votes
2 answers

ngRoute not working

My scripts are : index.html My Application
snajahi
  • 900
  • 2
  • 14
  • 26
0
votes
1 answer

json value getting it as "[object Object]"

In angularjs ng-route since my params are dynamic i'm passing it as json like as shown below $scope.filmNames= { 'films': { 'film': [{ filmName: 'ABCD', filmYear: '123' …
Alex Man
  • 4,746
  • 17
  • 93
  • 178
0
votes
2 answers

Reusing Angular App inside modal dialog

I have an app AppA which is defined in A.js. It uses ng-route with a template TemplateA; but it has two controllers ControllerA1 (Creating) and ControllerA2 (Editing). I have an other app AppB which is defined in B.js. It uses some ng-route…
user706071
  • 805
  • 3
  • 10
  • 25
0
votes
1 answer

Can I add routing for a page in the same file I create the controller?

for example, can I do this? angular.module('example') .controller('fooCtrl', function ($scope) { $scope.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma']; }) .when('/foo', { templateUrl:…
jalarast
  • 47
  • 5
0
votes
1 answer

Bootstrap responsive table not working with angular js ng-view in partial panel

I have an application in which I load html by routeProvider of angular js. In one of the html's i further include htmls based on a ng-switch. in the child html i have panels with table. I want to make those table to be responsive, but somehow even…
0
votes
2 answers

Angular navigate to a specific tab on a page

I would like to navigate to a page of my single page application using a link like /#/invoices/1?tab=2. This page contains tabs, so I would also like to send the user directly to the tab I wish through the url. Could you provide some pointers on how…
thanos panousis
  • 464
  • 6
  • 17
0
votes
1 answer

How to setup ngclass change when route change occurs in AngularJS?

I am trying to add a class on my main .container class when the route changes. My current simple solution involves an ng-click on every main menu url (no other urls on the page): app.controller('MainCtrl', ['$scope', function( $scope ){ …
hitautodestruct
  • 20,081
  • 13
  • 69
  • 93
0
votes
1 answer

AngularJS ngRoute doesn't seem to work with deep navigation

Angular is routing to a non-existing partial html file. My folder structure is |-- app.py (Python with Flask with basic routing into AngularJS) [Refer Code.01] |-- static |-- css (Has .css files) |-- img (Has assets…
-1
votes
1 answer

AngularJS $location change promise

I am using angularJS $location service for routing change, the problem is $location.url(someUrl) is asynchronous but doesn't return promise. So I searched for some solution for this and found these…
-1
votes
1 answer

How to change main layout in angular js?

When using ngRoute angular injects the views/templates into main layout i.e index.html. I don't want angular to inject into index but to index into home.html. How can I achieve this?
Mehul Mittal
  • 134
  • 10