在我的指令中:
app.directive('ckEditor', [function () {
return {
require: '?ngModel',
link: function ($scope, elm, attr, ngModel) {
和 HTML:
<textarea style="height: 350px; width: 98%"
data-ck-editor
data-editor-size="wide"
data-ng-disabled="modal.action=='delete'"
data-ng-model="modal.data.notes"
name="notes"></textarea>
有没有办法可以访问我分配给元素的名称?