I am still a big fan of redirecting the user to a separate page for 
different resources in my applications.
So, I don't use the routing components of AngularJS at all.

Everything I need to make API calls is in the URL of the page. It's either 
an ID embedded in the path or a query string.
It would be nice if AngularJS provided code to construct URLs based on a 
template or extract values from the current URL.
I assume this code is already a part of AngularJS because it would be 
needed to do routing. However, I don't think it is directly exposed by the 
library.

To work around this, I created a GitHub project that allows me to extract 
values from URLs or build URLs: https://github.com/jehugaleahsa/earl.js
I am not sure if my approach is very common. I often feel I am one small 
leap of faith away from doing a pure SPA.
However, if what I am doing is not that uncommon, it would be nice to use 
whatever URL code is being used for AngularJS's routing.

Thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to