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
1
vote
1 answer

The controller with the name '..' is not registered

Im using AngularJS 1.6 and have a problem with routing, where Controller is unregistered, although it seemed that there was no problem. Tried different solutions, but they did not help. products.html
1
vote
0 answers

Route with AngularJS 1.7.2

On the link below, I have an application with some route problem and I can't figure out why this is happen. I'm using Node.js to configure a http-server. When I try to access localhost:8080/#home, nothing happens. However, when I configure a…
Raagatzo
  • 27
  • 1
  • 6
1
vote
0 answers

Removing # prefix from an AngularJS site without breaking links

I have an AngularJS website based on Firebase. I have managed to remove the # prefix and reqrite urls like /#/home to /home, using the code below: .config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) { …
towi_parallelism
  • 1,421
  • 1
  • 16
  • 38
1
vote
2 answers

Angularjs route on button click is not working

I have been trying to make a angularjs application where I want to route to a different html page on a button click. But is not working for some unknown reasons. My html code
usersam
  • 1,125
  • 4
  • 27
  • 54
1
vote
2 answers

why ng-view doesn't display anything in my angularjs code

I'm new to AngularJS and I tried creating a sample login page and I tried routing to other page on successful login but nothing shows up in ng-view and my code has no error. What could be the problem? index.html
Ashok
  • 976
  • 3
  • 15
  • 32
1
vote
0 answers

get clean URL from UI routing and achieve share functionality

i need a clean URL for my angular JS project. And i am using ui-Routing(nested routing). app.config(function($routeProvider,$stateProvider,$urlRouterProvider) { //State routing $urlRouterProvider.otherwise('/home'); $stateProvider.state('home', {…
1
vote
1 answer

Angular js ngRoute is not working?

Hi I'm learning angular js. I'm using angular 1.5.6 version. Here is my code
e.k
  • 1,333
  • 1
  • 17
  • 36
1
vote
1 answer

angularjs ng-route. not work templateUrl

It does not work with the specified templateUrl: test.html but works if you specify the template: 'Hello ' WORK app.config(function($routeProvider){ $routeProvider .when('/test', { template: '

home

', controller:…
Саске
  • 190
  • 3
  • 12
1
vote
0 answers

Using jQuery and external javascript libraries using jQuery inside of AngularJS Routing

So I want to create a SPA (single page application) using AngularJS' Routing with ng-route. The thing is that a few of the html pages use jQuery or load external JS files containing jQuery (libraries and plugins I want to include), and I also have a…
1
vote
0 answers

Angularjs - Can't access url with parameter

I have the following code for routing to a survey. When I access it from another partial in my angular application like this '../fill/' +$scope.fill[i].id; which results in this url 'http://localhost:9000/fill/27' and everything works fine. But…
Tidi
  • 95
  • 1
  • 6
1
vote
1 answer

$routeProvider - not load controller after failed resolve

I'd like to check something in router. In some condition I should redirect on anothter page. I set up router: when('/login', { templateUrl: 'login.html', controller: 'Login', resolve : { 'checkLogin': ['checkLogin', function(checkLogin){ …
Nick
  • 19
  • 3
1
vote
2 answers

$routeProvider is not able to access html template

I have added both the files of angular.min.js and angular-route.min.js but still not working app.js code: var myApp = angular.module('myApp',[ 'ngRoute', 'artistControllers' ]); myApp.config(['$routeProvider',…
1
vote
1 answer

Display a specific object from array on another ng-route page

I am building a project which I have a bunch of profiles coming from an Array. One page displays them as a list, where each profile has a button to display more details about it. The problem is that I don't know how to pass this specific object data…
Caike Motta
  • 193
  • 3
  • 16
1
vote
2 answers

AngularJS: Parameterize controller via route

I use the same controller for multiple views. I want to parameterize the controller differently depending on the route taken. The views display basically the same angular ui grid, hence the same controller. However, in one view I want to pre-filter…
hansi
  • 2,278
  • 6
  • 34
  • 42
1
vote
4 answers

Loading modules in Angularjs

I have a problem trying to load some modules. controller1.js: angular.module('LPC') .controller('lista_peliculas_controller', ['$scope', function($scope) { $scope.hola="hola peliculas"; }]); And app.js: var app =…
David_ult
  • 17
  • 6