The built-in routing object in AngularJS, which can map the browser URL to a defined route.

learn more… | top users | synonyms

3
votes
0answers
492 views

Ionic navigation tab in header

Hey i've got a question about ionic navigation, The main navigation of my application is in the footer, but i want to add an information tab to the header, I also want this tab to have it's own view ...
2
votes
0answers
177 views

IE favicon disappeared when navigating other page in angular application

I found an issue with angular application. I have a the location provider setup to use the html5Mode true: $locationProvider.html5Mode(true); I noticed that the favicon is disappearing when ...
2
votes
0answers
47 views

GoogleMaps-Partial stops working in AngularJS

I am working on a web project with AngularJS + Foundation 5, and I am actually having some troubles with the partial views. There is no problem when I write everything in the same index.html page, but ...
2
votes
0answers
513 views

Angularjs: using $routeProvider and ng-controller at the same time

I use $routeProvider for 90%+ of my controllers, but am using ng-controller to attach controllers to angular-ui bootstrap html popover templates. It works, but every controller I specify with ...
1
vote
0answers
30 views

getting an error : Argument 'ctrl' not defined in angular js

my index.html file has the following : <script src="scripts/controllers/form/DashboardCtrl.js" /> <script src="scripts/controllers/chart/morrisChartCtrl.js" /> my app.js file is as ...
1
vote
0answers
21 views

Angular mangles weird URLs

Our legacy website had URLs that looked like ouroldsite.com/Script?key=val1=val2 These are now 301 redirected to: ournewsite.com/#!/Script?key=val1=val2 When angular recieves these requests, it ...
1
vote
0answers
556 views

Angularjs — Using directives for data load or resolve

I'm working on a large mobile application and I've come across a debate. Currently I have the resources for the various rest api's wired into a directive which then loads the data into the scope at ...
1
vote
0answers
48 views

Angular Web Project Not Changing Pages

I have a Java Maven Webproject that is using Rest. I cannot get the project to navigate more than a single time away from the index.html. I have attempted to use various applications of routes ...
1
vote
0answers
67 views

AngularJS $routeProvider can't specify groups of optional parameters

I have an angular view that displays a list and an optional detail of an item with a compound primary key (because the list aggregates results from multiple databases). When an item from the list is ...
1
vote
0answers
215 views

Can't get an AngularJS template to display

I am trying to walk through an Angular tutorial and having trouble with some basics. I have the following directory structure: index.html angular.min.js angular-route.js app views ...
1
vote
0answers
417 views

clear all pending $http requests and reload page in angularjs

i tried $route.reload(); location.reload(true); $window.location.reload(true);but pending requests are not cancelling/aborting, page is reloading, how to hard reload page means closing all $http ...
1
vote
0answers
354 views

How do I execute foundation js call after images are loaded in AngularJS ngview?

I'm creating a web application with AngularJS and Foundation. The problem arises when I use the Orbit content slider packed with Foundation. It requires a call to foundation's initializing function ...
1
vote
0answers
89 views

Virtual URL in angularJs with routeProvider

I have a list of items app/#/items, and a form to filter the item by the location that it's located in. I use dirty checking to trigger a method of a service that communicates with the Backend and ...
1
vote
0answers
400 views

AngularJS - “10 $digest() iterations reached” when ng-view ng-repeat dependant on $routeParams

I am really new to Angular and this is the first time that I am dealing with routing, so please excuse me if my questions are a bit confusing. My actual logic and structure for this app is much more ...
1
vote
0answers
100 views

Views that behave as lightbox or standalone depending on context

Let's say we have three views: A, B and X. The urls for these are /A, /B and /X. A and B both contain a link pointing to X. When clicked, X renders as a lightbox on top of A or B, and the url is ...
1
vote
0answers
314 views

angularjs ui-router dynamic ng-view in ng-repeat

I'm quite new to angularjs I have problem with dynamic generate ui-view names in ng-repeat http://plnkr.co/edit/vQjqYCB6mR34MS3coc1H?p=preview Is it possible to generate ui-view names in ng-repeat ...
1
vote
0answers
119 views

Way to use AngularJS in a magazine reader app

I'm learning AngularJS to make an app like this one. The example site uses a global JS object for one issue of a magazine to manage pages of it, and uses click handlers to deal w/ page switching and ...
0
votes
0answers
14 views

Is it possible to transition between named views with ui-sref in the same template file?

Here's my code // DEMO .state('demo', { abstract: true, url: '/demo', templateUrl: 'views/templates/demo.html', controller: 'MainCtrl' }) // PAGE ONE .state('demo.one', ...
0
votes
0answers
30 views

Routing in AngularJS is not working. '.config' keyword is not identified

I have used routing in AngularJS in one of the applications. It is working fine and .config is highlighted by webstorm as shown below. It is able to identify the command/keyword. It is shown as 'Non ...
0
votes
0answers
8 views

AngularJS application Login with routing

I am new to angularjs. I am not able to route to login page. after successful login it will route to home page. Is there any error in my code? Please guide me. Thanks. index.html ...
0
votes
0answers
33 views

angularjs html5 hash url

I am using server side google oauth in angular.js, Suppose my redirect url is localhost:8000/redirect. To remove # in angularjs I am using $locationProvider.html5Mode(true); But, when i visit the ...
0
votes
0answers
27 views

Google Maps Wont Work in AngularJS after routing

I am writing an app that has a Google Maps Embed. This Embed showed before I did some routing but now it wont work. Is this a common issue with AngularJS? If not, which I assume it isn't, can someone ...
0
votes
0answers
9 views

How can I obtain the URL from a database with Angularjs routing

I was looking for some solution to include the view template for the current route into the layout template, so I found angularjs routing that solved my problem but I have other, I want to get the url ...
0
votes
0answers
23 views

fetching the selected dropdown value in AngularJs

I have a dropdown menu which I coded using Bootstrap and I populate the data form the scope. How do I fetch the selected value from the controller whenever there is a change in the dropdown field. ...
0
votes
0answers
20 views

Google Maps is not displaying correctly

I have created an app that uses Google Maps, the map showed up before I did my routing. But after routing it wont display. Here is my code for the map. JS: (function() { mapController.$inject = ...
0
votes
0answers
25 views

Updating the data in the angularjs service and controllers

I have a angular service called 'NoteBooksService': app.factory('NoteBooksService', function() { var permanentStorage = window.localStorage; // Initializing the local storage if no data ...
0
votes
0answers
16 views

Is there a 'standard' way to get to the values in $$route?

I am currently using $route.current.$$route to get at some "non-standard" parameters I am attaching to route objects via the $routeProvider. Non-standard because they're not the three properties ...
0
votes
0answers
39 views

innerHTML removed when angularjs reloads the ngView

EDIT If I put the data into a global object, I can check the global object for content. If the global object already has data, kill the function, don't run another AJAX request and inject HTML from ...
0
votes
0answers
20 views

Angular js Routing - change the url after navigating using ui-sref

In my main.html I have a button. It navigates to page2 <a class="ui orange massive button" ui-sref="page2">Go To Page2</a> and the url is ...
0
votes
0answers
52 views

How to stop changing routes in angular js

I am new to angular. I am trying to stop navigation to the index page if the user is already logged in. That means I use a cookie by applying the following code. app.run(['$rootScope', 'authService', ...
0
votes
0answers
14 views

How to construct the hyperlink to Angular views in a virtual directory web app?

To create those links, here is what I have in the links array: ... { link: { text: 'create', url: '/virtual_directory/#/visitor/create' } } ... in the html partial view: ...
0
votes
0answers
16 views

conflict with routing on route updata

on angular i have very strange error i have defined that method so i can manager access to routes basically what i am doing is if the user is logedin he goes to home page another than that he should ...
0
votes
0answers
153 views

3 level nested views combining Tab Navigation & Side Menu Navigation with Ionic Frameworks

I see many examples out there combining the tab navigation & side menu navigation together but they are not nested, or example with nested views on side menu navigation only, in my case, I'd like ...
0
votes
0answers
25 views

dynamic router angularjs after login

I have my file app.js, it got my routes -> / login / home / signup But when I logging , would like to regenerate my routes deleting routes login / home / signup and generating only to /main ...
0
votes
0answers
58 views

<script src=“../path/file.js”> inside ng-view try to load file from server root

I am creating a angular based web app where users can create html apps using html/css/javascript. There I want to implement a preview function.Everything works perfect except for one error.It fails to ...
0
votes
0answers
12 views

Routing-Navigation on IE9 different to Chrome

I am trying to migrate to version 1.2.18 from 1.2.16, implementing routing with . So clicking /ContainerManagement/ContainersByUnit/1/749 will navgate to ...
0
votes
0answers
33 views

Angular route on IE9 with “compatibility view” crash the browser

I am using angular version 1.2.10 (also test it with 1.2.18 and 1.2.10) to create an app that user can go to the main page that it is list of item of some sort and another page for item detail also ...
0
votes
0answers
36 views

Non-single-page-app: Use pushState to change URL in the address bar on click

So my app is not SPA. I use Angular in certain spots and sometimes on a whole page but what I see in my address bar is my server page (PHP). Now, there is a page where I'd like to have my categories ...
0
votes
0answers
43 views

sharepoint 2013 clientwebpart loosing bookmark # on url

i need to retain both the standard tokens on my clientwebpart url to my sharepoint-hosted app and a special hashtag # bookmark path that's used by the angularjs spa application to route to the correct ...
0
votes
0answers
45 views

ASP NET MVC AngularJS correct routing

I have a URL localhost/admin/main This is at the moment rendered by .NET MVC as AdminController and view Main I want it to be rather rendered as localhost/admin/#main Meaning that it will go to ...
0
votes
0answers
51 views

How to dynamically add routes/templates to a SPA angularjs application

I have a single page application, with a container html page like the following: <!DOCTYPE html> <html lang="en"> <head> <title>...</title> ... </head> ...
0
votes
0answers
65 views

angularJS with laravel partial template javascript file issue in public folder

I have a partial template file in templates folder, that includes languages <script type="text/javascript" src="controllers/languagesController.js"></script> <div ...
0
votes
0answers
49 views

AngularJS Express HTML5 IE9 redirect loop

When Angular is executed in IE9 it falls back at legacy hashbang mode. What is the appropriate router setup both in Angular and Express so it works in IE9? Currently my app works fine in all browsers ...
0
votes
0answers
32 views

Using promise creates a slight delay in factory while acquiring jsonp

So I've been learning angularJS and now I managed to stumble on a frustrating "problem". Everything works in my code but the content has a slight delay. Delay is like 0.5 seconds after the page loads. ...
0
votes
0answers
45 views

location.path does not redirect to new location?

I am trying to get my head around redirecting from the login page in angular js. I have 2 links a secure one and a public one in my route: app.config(['$routeProvider', function ($routeProvider) { ...
0
votes
0answers
31 views

Adding scripts on route config

Upon learning Angular Route Styles, It's easier to apply different styles on different templates. Since it makes it so dynamic, I was wondering if there's a library to append scripts file(s) ...
0
votes
0answers
100 views

Angularjs initialize multiple controllers at startup?

i have a normal navbar with a menuController, this is the parent. then i have two other controllers a DashBoardController this is loaded on startup and a LoadDataController this is called if i click ...
0
votes
0answers
37 views

Disable angularJS routing for a specific url

I have a static sitemap.xml file which sits in the root of my server and needs to be served as is. Unfortunately, when I use the url www.mydomain.com/sitemap.xml it is rewritten by angularJS routing ...
0
votes
0answers
45 views

Need to resolve MVC and Angular Routes

I have a typical MVC route define routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = ...
0
votes
0answers
40 views

Routing with AngularJs

How to configure the route in AngularJS when the url contains query parameters. I have to write a config for handling route with the url /states?statename=kar. I wrote the config as ...