What\'s the best way to parse a query string in Angular without using html5mode? (Not using html5mode because we need to support older
the query params should go after the hash:
http://localhost/test#/?param1=abc¶m2=def
this should allow $location.search() to return an object like:
$location.search()
{ param1: 'abc', param2: 'def' }