JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.angularjs.org/0.10.6/angular-0.10.6.min.js"></script>
<html xmlns:ng="http://angularjs.org">
<body ng:app ng:controller="Ctrl">
<p>expected '{{expected}}'</p>
<p>found '{{found}}'</p>
<p>url '{{url}}'
</body>
</html>
JavaScript
function Ctrl($location) {
this.expected = '1/2 3';
$location.search('q', this.expected);
this.url = $location.url();
this.found = $location.search()['q'];
}