This is my code.
$http.get("/Student/GetStudentById?studentId=" + $scope.studentId + "&collegeId=" + $scope.collegeId) .then(function (result) { });
In the code above, use the http service to retrieve student information based on ID. but I want to write the above line service.format, as in C # .net
(eg:- string.format("/Student/GetStudentById/{0}/collegeId/{1}",studentId,collegeId)
javascript angularjs
durga siva kishore mopuru
source share