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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -