Tagged Questions
3
votes
2answers
338 views
Single page app, permalinks and ngView?
This is my current setup, with each column being represented by a controller:
<navbar></navbar>
[column1] [column2] [column3]
<footer></footer>
Additionally each column has ...
1
vote
2answers
98 views
How to globally resolve a dependency (preload current user from server)
I know I can resolve certain dependencies for a controller based on the route. However, I have a service that I always want to be resolved: The current user.
The service basically does a get request ...
0
votes
1answer
42 views
How to get the actual current controller on $routeChangeSuccess
I have a global routechangesuccess event handler for tracking route changes as "Page Loads" to our analytics platform.
Currently, I am using the current controller name in the routechangesuccess ...
0
votes
1answer
591 views
Sharing a webservice's data across controllers in AngularJS
I have 2 big issues with an Angular app, I'm completely stuck and hoping someone out there can help me.
My method of sharing data from a web-service out to multiple controllers is flawed and I don't ...
1
vote
0answers
418 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
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 ...
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
21 views
AngularJS routing depending on a service
I have implemented a service which has a function with a callback.
Depending on positive or negative callback my controller should do different routing.
The callback function gets called correctly but ...
0
votes
0answers
34 views
AngularJS remembering page scroll location
I have multiple pages of data that lists publications by author. The first page lists all the publications and has infinity-scrolling implemented.
Another page allows you to filter by author, and ...
0
votes
0answers
107 views
Make sure some object is loaded from server before $locationChangeStart event handler gets executed
I have a handler bound to $location's $locationChangeStart event. Within that even handler, some user object coming from the server is required. Below is the code (simplified) that I have:
...