Submit button that redirects to another page with ui-router
<p>I am using AngularJS ui-router to go to different pages. I have a button that submits a form but I also want it to take me to a different page upon submission. So I tried to do something like this:</p>

<p><strong>Approach 1, button</strong></p>

<pre><code>&lt;button href="#anotherPage" type = "submit" ng-click = "someFunction()" class = "btn btn-default"&gt;Go to another page&lt;/button&gt; 
</code></pre>

<p>Typically, this is done in a link, so I also tried this: </p>

<p><strong>Approach 2, link</strong></p>

<pre><code>&lt;a href="#anotherPage" type = "submit" ng-click = "someFunction()" href="#results" class = "btn btn-default"&gt;Go to another page&lt;/a&gt; 
</code></pre>

<p>Approach 1 doesn't work because href doesn't work with buttons, approach 2 takes me to the other page but does not submit. What is the cleanest way to do this?</p>