ฉันกำลังพยายามค้นหาองค์ประกอบใน html โดย angularjs
นี่คือ html:
<button class="btn btn-primary multi-files" type="button">
<span>Choose multiple files</span>
</button>
<br/><br/>
<input ng-file-select type="file" multiple style="display: none"/><br/>
ฉันพยายามรับองค์ประกอบปุ่มตามชื่อคลาสหลายไฟล์จากนั้นฉันก็ลอง
var multibutton = angular.element(element.getElementsByClassName(".multi-files"));
แต่ไม่ได้ผลและพยายามelement.find
แล้ว แต่ใช้ได้กับแท็กเท่านั้น
มีฟังก์ชันใดบ้างที่สามารถรับองค์ประกอบตาม id หรือ classname ใน angularjs ได้หรือไม่?