The built-in routing object in AngularJS, which can map the browser URL to a defined route.
3
votes
0answers
407 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 ...
3
votes
0answers
73 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
64 views
$routeProvider not triggered after login redirect
I have a basic Django app (Django 1.7) with an AngularJS (1.2.19) frontend using basic routing. When first accessing the site, the routing loads properly and displays the content in the ng-view. ...
2
votes
0answers
83 views
Angularjs - ui-router with dynamic number of parameters
we have a requirement like this. we use ui-router
#/plan-details/unlimited
#/plan-details/unlimited/country-id/10024
#/plan-details/local/county-id/12322
...
2
votes
0answers
43 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) {
...
2
votes
0answers
168 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) {
...
2
votes
0answers
449 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
...
2
votes
0answers
807 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 ...
2
votes
0answers
106 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
93 views
How to debug this AngularJS Error: [$injector:unpr] Unknown provider: $templateRequestProvider <- $templateRequest <- $route <- ngViewDirective
There are a couple questions floating around with the same error, and the common resolution was the angular.js version was out of sync with angular-route.js.
I do not think this is the case with me.
...
1
vote
0answers
33 views
Angular JS routing between two pages at start
I have a situation where I want to either route a intranet user to the default start page (if they have used the app before or take them to the "how to use" / tutorial page if they have not used the ...
1
vote
0answers
31 views
angular url with django url
I am making a Single Page Application using angularJS, django and django-rest-framework. All urls are specified in django and only those urls in which I want to load partials are specified in ...
1
vote
0answers
80 views
AngularJS: Cannot redirect inside resolve with failed $http Intercept
My AngularJS app has a $http intercept that checks for 401's returned from any api calls and redirects to the login state. This is working everywhere except on the following:
I have one state which ...
1
vote
0answers
384 views
$mdToast, $mdDialog is not working in route
I was happily calling $mdDialog.show or $mdToast.showbut I started to use $routeProvider, I can't use them anymore, I'm getting this error when I tried to open toast or dialog:
TypeError: Cannot read ...
1
vote
0answers
91 views
Angularjs routing conflict with MVC routing
My MVC webpage have two links for "Dashboard" and "ManageClient" pages.
When I directly set route path to my AngularJS page(ManageClient), my "new client" template shows in <div ng-view=""> ...
1
vote
0answers
36 views
Angular Routing not working - blank screen
I am stymied by this issue. For some reason the Angular routing is not working at all. I simply get a blank screen. All of the modules are loading, there is no error in the console, and if I enter ...
1
vote
0answers
170 views
$routing is automatically reload angularjs and hang the page
app.js file is
var app = angular.module('TaskApp', ['ngRoute']);
app.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
$routeProvider.
...
1
vote
0answers
94 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
71 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
39 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 = ...
1
vote
0answers
60 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
125 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 ...
1
vote
0answers
196 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
114 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 = ...
1
vote
0answers
41 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
95 views
Django angular database form integration
I am currently trying a few ways of connecting a postgre sql database that I already have defined using a django model with a front end angular form that I created within the same project. (This a a ...
1
vote
0answers
2k 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
63 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
97 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
487 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
108 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
374 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
142 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
26 views
How to redirect to another page on click of button using angularjs
I am new to angularjs. And in my code below is the HTML snippet :
<button class="FR"><a href="" ng-click="go('/manage-CMS')">Create New Events</a></button>
and on click of ...
0
votes
0answers
16 views
Angularjs html5mode=true based routes and optional dynamic parameter
I am using angular htmlmode=true to implement the client side routing for different view. The problem that I am facing is to make dynamic parameter optional. Somehow its not working for me. Following ...
0
votes
0answers
15 views
Angular mutiple single pages(modules) not working at ie9 and asp.net mvc route
Below is my RouteConfig.cs ...
routes.MapRoute(name: "StudentManagement", url: "StudentManagement/{*catchall}",
defaults: new { controller = "StudentManagement", action = "Students" ...
0
votes
0answers
47 views
Dynamically update header in ionic angularjs
I have been stumped on this problem for a while now . when i navigate between different child page the ion-content is well updated but the header content is not showing anything until I reload the ...
0
votes
0answers
48 views
Angularjs Routing problems
I made a similar question but... this is a little different and I got stucked this :S So here what I am facing right now:
So I've got a project where in I using Angular.js. This is a default ...
0
votes
0answers
14 views
$routeProvider gets in infinite loop even after prefixing templateUrl with '/'
My routing code is as following,
HTML :
<div ng-controller="LinkedInController as linkedInCtrl">
<div>
<div>
<h1 ...
0
votes
0answers
17 views
ngRoute on existing Laravel website
First of all please excuse my English. I am add AngularJS existing Admin panel built with Laravel.
Let me explain the issue.
even $routeProvider.when() does not exist its still preventing browser's ...
0
votes
0answers
52 views
Routing with Polymer App-Router and Apache
I understand that I need to point all URI requests to the the root URL in order for the app-router to work. Ex: URLs like /services should point to /.
Also, if the base URL is /v3, the sub URLs would ...
0
votes
0answers
25 views
$State.Current on initial page load
When my app starts up for the first time $state.current returns an empty string for the name and '^' for the url. this is causing problems because i am trying to select my menu item based on the name ...
0
votes
0answers
43 views
AngularJS : How to use $state.go to pass querystring in nested state routing
How can I use $state.go to pass a query string into nested state routing?
Code:
.state('masterform', {
url: "/masterform?action&assetId&contentTypeId&folderid",
...
0
votes
0answers
17 views
angularjs static searchbox in all pages
I have a searchbox , list of items , when i click on each item it will take me to the item info tempate.
right now in my below code the searchbox is inside the items.html and it only appears in there ...
0
votes
0answers
29 views
Angular ui router form wizard app - how to route a returning user to the page they left off on
I have an AngularJS form wizard app using ui-router that consists of 5 pages in this order:
START_PAGE -> FORM_PAGE_1 -> FORM_PAGE_2 -> FORM_PAGE_3 -> FINISH_PAGE
I'm saving the form data from the 3 ...
0
votes
0answers
74 views
How to do page redirect with Angular UI Router so back button doesn't work
When a user submits a form on my site, I want to redirect them to the next state in my application using Angular UI Router so the user can't hit their back button to go back or refresh button to ...
0
votes
0answers
15 views
How to get the div text context by using ng-model?
Here when i click on checkout the all data should be bind and i have to get this this data in view2.html.here how can i send the div inside text data to another page.Can any one please help me out?
...
0
votes
0answers
72 views
AngularJS and Angular-Route-Segment
I am new to AngularJS so any tips will be welcome as I'm still trying to wrap my head around how everything works.
The following controller houses other controllers inside of it, however I've ...
0
votes
0answers
67 views
[Angularjs]when I use $location.path() to change another the same url twice, the ng-init will not be triggered in the controller in the second time
As title, in the my case, I entered the profile page at the beginning. The profile page would trigger the ng-init, it would display the no log-in status.
So I entered the log in page, and input user ...
0
votes
0answers
27 views
Javascript is not called in Partials
I've included partials in my application with ng-view.
The partials are specified as
templateUrl:'xyz.html'.
The html files have javascript files reference at the bottom as
<script ...