How can we pass parameters to a partial view in angularJs. I'm new to angular, I follow these tutorials for learning. This tutorial explains the basic situation, but nothing about how we can send a parameter to a partial view. eg,/addStudent?id=45
$routeProvider.
when('/addStudent', {
templateUrl: 'addStudent.htm',
controller: 'AddStudentController'
}).
when('/viewStudents', {
templateUrl: 'viewStudents.htm',
controller: 'ViewStudentsController'
})
source
share