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

HTML local linking not working when combined with ng-view

In my front end I have a simple index.html that I have placed a ng-view tag in it as follows:
My routes.js file is something like this: (function()…
Nesa Mouzehkesh
  • 3,755
  • 2
  • 14
  • 11
1
vote
2 answers

Angular Route with multiple slashes override folder path

I have an Angular app using ngRoute module along with HTML5 mode pushState for cleaner URL. app.config(function($routeProvider, $locationProvider){ $locationProvider.html5Mode(true); $routeProvider //Route for home page .when("/", { …
1
vote
1 answer

TemplateUrl, ngRoute this is wrong

I have a problem with my code: var app = angular.module( "myApp", ['ngRoute'] ); app.config( function ( $routeProvider ) { $routeProvider .when( '/home', { templateUrl: 'strony/home.html' } ) .when( '/about', { templateUrl:…
1
vote
0 answers

Unknown Provider when i try to check Auth

Hi im having a problem when in trying to check the Auth status with firebaseAuth on my application Here is my sample code angular .module('starterApp', ['ngMaterial', 'ngAnimate', 'menu', 'about', 'purpose', 'streaming',…
1
vote
1 answer

how can redirect page with ng-click by passing the id in URL

i'm beginner with AngularJS but i have a problem in it and i dont know how to fix it. i will explain it to you , I have OneToMany relationship between a table called "Reference" and "Critere" it means that one "Reference" should contains many…
1
vote
1 answer

AnguarJS Routing Not Working As Expected

I have a listing of blog posts and I want to be able to click on the title and have it dynamically redirect to the proper posting. So far it works except when I click on the anchor tagged title it redirects to: blog/#/post/:post rather…
Kyle Calica-St
  • 2,629
  • 4
  • 26
  • 56
1
vote
1 answer

ngRoute not working on refresh or Unknown route

I'm experiencing a problem with my code. When refreshing the page on localhost:portnumber/home or /todos or /contacts it crash -> with replay Cannot GET /home or /todos or /contacts. same problem if i just enter localhost:portnumber/blablabla ->…
Shon Otmazgin
  • 23
  • 1
  • 5
1
vote
1 answer

change url on successful login angularjs

Hi I want to change the url on successful login. The login url is localhost/filename/login.html and on successful the url is localhost/filename/index.html#/birds_eye. Am using angularjs 1.3.14. Here is the app.js code var app =…
Prashanth
  • 98
  • 1
  • 7
1
vote
1 answer

Route to Submenu Angularjs

In this sample what I need is that in plnkr.co/edit/5FVrydtTPWqYMhhLj03e?p=preview, when I click the Contact Numbers button, It will redirect to the Contact Numbers page in the Contacts. Im using Angular JS and I hope someone can help…
bleyk
  • 799
  • 3
  • 14
  • 41
1
vote
2 answers

Angular $injector:modulerr Module Error

I don't know what cause this error: Click to see the error I'm trying to create a dynamic web application. Do I need a local-server to run this application. Currently i'm not using any local-server. HTML:
ONE_FE
  • 968
  • 3
  • 19
  • 39
1
vote
0 answers

Angular JS - the common issue of two apps using the same route provider

Hey all and thanks for reading. I have a client side set of text blurb I wanted to feed through views using ng. My problem is that although I feel I have this set up correctly, I only ever see a repetition of the first view on the second view and…
gruffy321
  • 175
  • 2
  • 13
1
vote
0 answers

Can I include 'ui-view' inside and 'ng-view' partial page?

I'm just assigned on a SPA (angularJS) project where view routing is maintained with traditional ngRoute. For now I'm not allowed to move all the routing to state based 'UI.Routing' but they permits me i can use ui routing with the new features i…
1
vote
2 answers

Replace ngView HTML contents dynamically

I have an HTML page with a button which fires on click a request to an external service. This post request returns an HTML page. Is it possible to replace the current ngView with this HTML content? $scope.clickEvent = function() { var url =…
1
vote
3 answers

How to pass data from one html page to another using ui.router in angularjs

I retrieve data from back-end and show it in a html page using a controller. When user click a certain link, the other page load according to the link id(here promo page). I want to pass the menu_id to the loading page. I use ngRoute. Below is the…
shamila
  • 1,280
  • 6
  • 20
  • 45
1
vote
0 answers

How to delay route change in Angular?

I have a master/detail view app, when users go back from detail to master view, I'd like to take a screenshot of the detail view using html2canvas The problem is that html2canvas provides only async methods for screen capturing, so I need to hold…
Jiaji
  • 175
  • 11