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

learn more… | top users | synonyms

2
votes
0answers
638 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 ...
2
votes
0answers
239 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
54 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
599 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
20 views

Wait for app to finish initialization before changing route

When I start my app I have an initialization process that shows some loading indicator and shows the actual content after everything is loaded. Now when I change the Url manually, the initialization ...
1
vote
0answers
31 views

Dynamically generate templateURL

I am trying to generate templatURL dynamically. I am using angularjs ui-routing my routing function is: }).state('error',{ url: '/:locale/office-profile/', templateUrl: function(obj) { ...
1
vote
0answers
43 views

Angularjs routing fails on server when minification is turned on

I am currently building a Angularjs singel page application and i have run in to some odd error with my routing. I have a nav bar with multiple options and all but one of them work correct. This is ...
1
vote
0answers
54 views

Route with Arguments and Resolve Loads Angular More Than Once

This is working code from this question that receives and renders the data. var app = angular.module('app', ['ngResource', 'ngRoute']); app.config(function($routeProvider, $locationProvider) { ...
1
vote
0answers
48 views

How to structure AngularJS and PaperJS project

The idea is to make use of Angular in a simple canvas game development. In theory the project should benefit from being more systematic, manageable and scalable. This is not a sprite/tile/collision ...
1
vote
0answers
40 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
99 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 ...
1
vote
0answers
26 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
851 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
53 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
76 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
295 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
493 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
372 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
92 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
407 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
320 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
125 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
10 views

ngMorph deep-linking to expanded element

I do not realize how to route a URL to an expanded element. (expanded by NgMorph directive) I think that a route could be used, but me confused. These directives are only visual, how can i achieve a ...
0
votes
0answers
25 views

AngularJS: Can angularJS route parameters be assigned to multiple values?

Assume the following route provider: myApp.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/multivalues/:value/:value/:value', {templateUrl: ...
0
votes
0answers
25 views

AngularJS App Safari issue

I have an angularJS app that loads perfectly in Chrome/FF and even in Safari unless I try running it on Safari via playonlinux or Wine in my ubuntu machine. I develop on ubuntu and hence I am unable ...
0
votes
0answers
14 views

AngularJS - Multi-Tenant Routing

I want to write an AngularJS app that has the different routes for different customers. The reason for this is that our customers do not want their users to have to pick the customer from a ...
0
votes
0answers
16 views

Angularjs: how to handle URL in order to get back to it?

My single page app (SPA) has popups (a simple display:block CSS style modification to show it up) which enables for a smooth show up in a snap. The issue I face is that some popups have a href links ...
0
votes
0answers
20 views

IIS angularjs routing - access application from URL

Presently I use the following url style with .html extension to start the angular app. http://localhost:7370/dashboard.html or http://www.subdomain.website.com/dashboard.html Is there a way to run ...
0
votes
0answers
27 views

What is the proper way to use $location.path()?

I'm trying to determine the best way to get $location.path() to work for me. In the code below, in the $rootScope.$on('unauthenticated') function I had $location.path('/login') getting called but the ...
0
votes
0answers
23 views

Angularjs Reload partial view gives 'object not found' error in official docs example

Following the example in official docs, I find that the partial view rendered doesn't work when one reloads the page. The plunker link is here. If you launch the plunker preview on a seperate ...
0
votes
0answers
41 views

Why is the angular controller never called?

Everything loads fine in the inspector and I do not see console errors. But I am expecting info.html partial to load. It is not using any data at this point from the scope. But the code form the ...
0
votes
0answers
21 views

How to make Kendo Grid working with AngularJS ng-view?

I'm trying to get Kendo grid from an external page in ng-view but nothing comes up. If I run Kendo grid standalone it works fine. So how can you access Kendo Grid as a partial view items in ...
0
votes
0answers
11 views

Is returning a 301 (permanent redirect) for assets returned for a client-side route appropriate?

I'm developing a single page app, and I need to account for the fact that users may request a url that represents a client-side route that doesn't actually exist on the server. Let's say that the ...
0
votes
0answers
19 views

relative paths and routes inside a directive

Starting angularjs and trying to integrate it into our next mvc project. I've hit a bit of a snag with routes. Looked at the documenation on routeprovider but it doesn't really seem to solve my ...
0
votes
0answers
24 views

angularjs routing not work for me

Please help me. Here is my code. Javascript: var myMailMod = angular.module('myMail', []); function configView($routeProvider) { $routeProvider. when('/', { ...
0
votes
0answers
31 views

Store the value from url params using angular js

var x = $location.search('filterBy=')[1]; $http({method: 'GET',url: '/asasa/sddd?websiteId='+x}).success(function(data) { $scope.onlinedata = data.coupons; ...
0
votes
0answers
25 views

Executing php code issue caused by angular routing

This php code works standalone but if it gets injected via angular routing the if statement does not accept the submit from the input: The PHP Code: <?php if (isset($_POST['submit'])) { echo ...
0
votes
0answers
79 views

template instead of templateUrl in angularjs and Asp.Net MVC?

I am using AngularJs in Asp.Net mvc 4. I would like to use the template in $routeProvider instead of templateUrl I wan to use this one $routeProvider.when('/url', { template: ...
0
votes
0answers
31 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
37 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
19 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
51 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
56 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
29 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
45 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
30 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
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
72 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
81 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 ...