2015-11-21 29 views

回答

0

可以使用ng-click像以下:

<button ng-click="followup(patient)"> 
     OK </button> 

和控制器:

$scope.followup = function (patient){ 
    $state.go('Followup', {patient:patient.id}); 
} 
1

做這個

<button ng-click="go()"> OK </button> 

在控制器

$scope.go = function (patient){ 
    $state.go('Followup', {patientid:patient.id}); 
} 

我不知道patientid.id正確與否在你的問題,所以我認爲,我們有病人的對象,我們希望瀏覽到參數的下一頁作爲患者ID。

+0

如果它工作正常,請選擇最佳答案,因爲沒有其他的答案了..謝謝投票。 –

相關問題