This is my code
$http.get("/Student/GetStudentById?studentId=" + $scope.studentId + "&collegeId=" + $scope.collegeId)
.then(function (result) {
});
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
(eg:- string.format("/Student/GetStudentById/{0}/collegeId/{1}",studentId,collegeId)