에서 각 컨트롤러에 자바 스크립트에서 값을 보낼 수, 난 단지 팝업에 표시됩니다 그 HTML이내가 예를 들어 런타임
<div id="popup1" style="display: none; width: 600px; height: 400px; overflow: hidden">
<div ng-controller="DataBindingCtrl">
<div rel="title">
Show or Update Image
</div>
<div rel="body" style="padding: 10px; line-height: 150%">
<div >
<img src="https://upload.wikimedia.org/wikipedia/commons/a/ac/No_image_available.svg" style="float: left; background-color: white; width: 250px; height: 320px; border: 1px solid silver; margin: 5px;"/>
</div>
<div class="w2ui-field w2ui-span3">
<label>Files:</label>
<div>
<form class ="form-horizontal">
<input id="file" style="width: 100px" />{{selBookId}}
<input id="currentRecord" type="text" ng-model="currentRecordText" ng-model-instant>
{{currentRecordText}} {{idRec}}
</form>
</div>
</div>
</div>
@*<div rel="buttons">
<button class="btn" onclick="$('#popup2').w2popup()">Switch to Popup 2</button>
</div>*@
</div>
내가 에 대한 idRec을 값을 설정할 때 사용자가 팝업 창 버튼을 클릭합니다.
이것이 가능하며 적절한 방법은 무엇입니까?
당신이 그것의 각도와 jQuery를 사용하여 필요할 때마다'NG-model'이 idRec' – Rajesh
'가리키는 숨겨진 텍스트 필드를 가질 수 있습니다 추측 지시어에 jQuery를 넣는 것이 가장 좋습니다. 그런 다음 뷰에서 원하는 매개 변수를 지시문에 전달하고 jQuery 코드와 함께 사용할 수 있습니다. – Lex
jsfiddle를 제공 할 수 있습니까? –