Angularjs: pass a parameter to controller -
i have link in html
page this
<td><a href="#/reg_det"> drivers </a></td>.
i need send parameter {{registration.publicid}}
angular controller when user clicks on link, don't know how can it?
this possible through $scope.
read more here: https://docs.angularjs.org/guide/scope
unless go ng-click: (example)
<button ng-click="yourfunction(registration.publicid)">drivers</button>
Comments
Post a Comment