I have a simple line of code that gets me the current path location using AngularJS :
$location.path()
Which results in the following format: /stringValue/intValue/stringValue for example - test/1234/testing
What would be the simplest way to extract the intValue from what $location.path() returns?
$location.path().split('/')[1]?