I see this documentation: http://docs.angularjs.org/api/ng.directive:ngHref
And this clearly shows that you can manipulate the URL based on values in an input.
But I want to do the opposite. I want to have http://www.example.com/5
and feed the 5
to a variable I can use in my controller.
How do I do that?