Wednesday, 1 June 2016

30. Angularjs Routeparams

      Now we will learn how to pass and retrieve parameters from the url using angularjs.


now define a new controller(studentdetails) and new template and define new route using $routeProvider in config method.




add new tempalte for specific studentdetails --studentdetails.html, from Routescript.js every time one sutdent object will be passed (for demo we hardcoded one student details).

output :


Notes:


No comments:

Post a Comment