0
votes
1answer
12 views

AngularJS Route breaks on manual refresh

In the config method, I have some routes defined as follows: $locationProvider.html5Mode(true); $routeProvider.when('/', { ... }); $routeProvider.when('/front', { ... }); ...
2
votes
3answers
46 views

Why is AngularJS duplicating the query string in my route?

I am using hash-based navigation in my AngularJS app rooted at /. If a user navigates to my app like this: http://example.com/?foo A moment after the page loads, something (possibly Angular) is ...
0
votes
1answer
17 views

.config .run and 2 x config, where to put changeroute .. appctrl, config, run or what?

I wanted to find out the different to .config and .run functions in angularjs. I was using my .config for setting up routes of course but i did have some $on for watching route change starts and ...
0
votes
2answers
32 views
+100

AngularJS (Restangular): Making a promise block? Need to use it for validating a token

I have stumbled upon Restangular for making calls to a rest service. It works great and returns a promise. I need to be able to have the call block. The reason for this is on a fresh page reload I am ...
0
votes
1answer
21 views

What is the singnificance of the forward slash in Angular.js url?

I saw here in the Angular js documentation that A path should always begin with forward slash (/); the $location.path() setter will add the forward slash if it is missing. This is so different from ...
0
votes
0answers
27 views

Angular.js Click on link to download is causing navigate to home page

Here is what I have <div quick-list> <br quick-link icon='download-alt' href='{{ getDownloadLink(assignment) }}' text="getMessage('assignmentListStudent.attachment.action.download')"> ...
0
votes
2answers
33 views

AngularJS: href=“#” causes location address to change, can we avoid?

I have a number of tabs that I handle special logic so no location bar address change should occur. I have the following <a href="#">Home</a> This behaves as expected i.e. it gives ...
0
votes
1answer
41 views

during ng-animate of views, “leaving” view still takes up space while “entering” view is animating in

I'm using AngularJS 1.1.5 and trying out the ng-animate directive with daneden's animate.css. I have a couple of views set up using routing. I'm using Twitter Bootstrap 3 RC1. Here is the code for ...
1
vote
2answers
25 views

$stateChangeSuccess not firing on href-transitioning

Am I correct in my conclusion that $stateChangeSuccess won't fire unless I use $state.transitionTo? For instance: //in app config .state('detail.zoom', { url: '/zoom/{itemId}', ...
1
vote
1answer
16 views

Return interdependent async promises in $routeProvider resolve

Consider the code: var myApp = angular.module('myApp', []); The routes: myApp.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/', { templateUrl: ...
0
votes
1answer
96 views

AngularJS - Need some combination of $routeChangeStart and $locationChangeStart

My problem is actually very similar to the one found here: AngularJs - cancel route change event In short, I'm using $routeChangeStart and trying to change the current route using $location. When I ...
1
vote
3answers
152 views

Security for an AngularJs + ServiceStack App

I have an application that have four modules in the front end, I'm trying to use as much as possible AngularJs in the front end I'm using an empty website asp.net project to host all the files and the ...
0
votes
1answer
25 views

Avoid ng-view getting “wiped” (updated) when $location.search updates GET params

So I have a map object instantiated using the leaflet library. The map instance is created in a separate template and routed in this manner:- var app = angular.module('myApp', ['ui', 'ngResource']); ...
0
votes
2answers
18 views

AngularJS: dealing with root and sub applications in sub folders

I have two AngularJS applications: is the base application and runs at root / is a sub application that needs to be isolated for design reasons and runs in a sub folder, say /foo/ How can I route ...
1
vote
2answers
52 views

AngularJS partials with URLs in directives - best practice?

I quite like how angular-ui has created ui-routes, which provides named routes (among other things). Though likely a simple directive to write—a wrapper for ui-view—I am not sure if it is best ...

1 2 3 4 5 8
15 30 50 per page