How to Write string format in angularjs like as c#? : <p>This is my code</p>

<pre><code>$http.get("/Student/GetStudentById?studentId=" + $scope.studentId + "&amp;collegeId=" + $scope.collegeId)
          .then(function (result) {
          });
</code></pre>

<p>In the above code use http service for get student details based on id. but i want to write the above service string.format like in c#.net</p>

<pre><code>(eg:- string.format("/Student/GetStudentById/{0}/collegeId/{1}",studentId,collegeId)
</code></pre>
