I am new to angularjs but have been working with django for some time.
I am used to the idea of writing the following in my templates:
<a href="{% url 'profile-page' user.pk %}">{{ user.name }}</a>
and the following being generated in the rendered html:
<a href="/profiles/33">Eamonn</a>
n.b. this profile-page url is defined in my url routing
This is very powerful as I can change the urls without having to change the templates.
I am loving angularjs but I am not too happy adding my urls into my templates and I am using a name instead of the url which feels like I am programming to an interface and not an implementation. Also, if I specify a url two or three times in different templates it is not very DRY.
Is there any native way of doing this of something similar in angularjs?