How to bind a value from a model to URL?
<p>I created two inputs:</p>

<pre><code>&lt;input type="text" ng-model="x"&gt;
&lt;input type="text" ng-model="y"&gt;
</code></pre>

<p>And I want to bind values from models to URL via $routeProvider or $routeParams or anything else. That the URL will change automatically. For example: site.com#/x/y. On the contrary if I request url like: site.com#/2/4 the values from url to input in the models. How to bind all this?</p>