Default value for parameters in state.go angularjs
<p>I have make route in my <code>app.js</code>, well I need receive two parameters in <code>upsr</code> URL.</p>

<pre><code>.state('upsr', {
   url: '/upsr/:QuestionIdIndex/:LangId',
   templateUrl: 'modules/study/question/question-details.html',
   controller: 'upsrCtrl'
})
</code></pre>

<p>How I can use <code>$state.go</code> without sending any parameters like below?</p>

<pre><code>$state.go('upsr');
</code></pre>

<p>Instead of:</p>

<pre><code>$state.go('upsr',{
    QuestionIdIndex : 0,
    LangId:0
});
</code></pre>

<p>Note: If there were no any parameters, then it will set as default value. For example</p>

<pre><code>QuestionIdIndex = 0; 
LangId = 0;
</code></pre>

<p>My problems was if I just use <code>$state.go('upsr');</code> then it would be error.</p>

<p>Any ideas how to solve this?</p>