The built-in routing object in AngularJS, which can map the browser URL to a defined route.
66
votes
9answers
24k views
Delaying AngularJS route change until model loaded to prevent flicker
I am wondering if there is a way (similar to Gmail) for Angular to delay showing a new route until after each model and it's data has been fetched using its respective services. For example, if there ...
10
votes
1answer
928 views
Redirect after user has logged in
I'm pretty new to Angular, and right now I'm just trying to get all my routes set up and working as I'd like.
Setup:
When a user navigates to certain pages (/settings for this example) the app should ...
7
votes
1answer
5k views
Opposite of $routeChangeSuccess in AngularJS
I was just wondering if there is a way to know if someone is changing the route of the URL.
As an example, I have something like this in my html:
<a ng-href="#/somewhere">To ...
5
votes
1answer
257 views
Using grunt server, how can I redirect all requests to root url?
I am building my first Angular.js application and I'm using Yeoman.
Yeoman uses Grunt to allow you to run a node.js connect server with the command 'grunt server'.
I'm running my angular ...
4
votes
1answer
214 views
AngularJS and Handling 404 Errors
What is the best way to handle 404 errors with AngularJS?
A little background: I'm building an Angular app and have opted to use
$locationProvider.html5Mode(true);
because I want the URLs to ...
3
votes
3answers
170 views
Different base url for page routing and templates/partials/RESTful API
My Angular app is splitted into several subapps. I'm working with laravel which is also responsible for the routing between the subapps.
So there are the following urls handled by laravel:
ModuleX: ...
3
votes
2answers
398 views
Which function is called each time url changes in AngularJS?
I have to make a queue of all requests simultaneously happening without waiting for the response from the previous request in angularjs.I have a loading function which shows the loading div each time ...
3
votes
1answer
606 views
How can I easily implement multiple layouts in Angular JS?
I need to be able to specify different layouts for different routes, and most preferably I would like to be able to define layouts and other parameters in an object in route config and have them ...
3
votes
2answers
2k views
how to pass querystring in angular routes?
Here is angular routes.. How to work with querystring for example, url.com?key=value in angularjs ?
angular dont understand the route which contains key-value pair for the same name "albums..
...
3
votes
1answer
62 views
How to remove index.html from url on website based on angularjs
I didn't find a way to remove index.html from the url, because like this looks really ugly.
mydomain.com/index.html#/myview1
mydomain.com/index.html#/myview2
Is there a way to remove that part, ...
3
votes
1answer
342 views
angularjs: tabbed view design issue
[EDIT]
Similar question to AngularJS - Complex nesting of partials and templates
As of now, is it better to use Angular-UI state solution or should I stick with ng-includes ?
So far I had one ...
3
votes
1answer
108 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 ...
2
votes
3answers
2k views
Simple Angular $routeProvider resolve test. What is wrong with this code?
I have created a simple Angular JS $routeProvider resolve test application. It gives the following error:
Error: Unknown provider: dataProvider <- data
I would appreciate it if someone could ...
2
votes
2answers
523 views
How can I redirect to a 404 when a promise is rejected in route config (Angular)?
What is the best approach for having the client redirected to a error route when the API responds with a 404 when trying to load a resource given the parameters in the url, in Angular?
When someone ...
2
votes
2answers
224 views
Angular.JS unsuccessfully tries to load a view with the OPTIONS HTTP method
I have been following along with the AngularJS Fundamentals In 60-ish Minutes tutorial
http://www.youtube.com/watch?v=i9MHigUZKEM
I was doing fine until I got 52 minutes in when the tutor tests ...