我尝试将标题添加到代码中显示6次的标记:
var a = $document.find('md-checkbox');
a.after('<span title="title">i</span>');
所以我尝试按文字内容查找标记,但它无效:
app.controller('FacetExactAfterController', ['angularLoad', '$document', function (angularLoad, $document) {
var text = 'TEXT';
var wrappedResult = angular.element.binding(text);
wrappedResult.after('<span title="title">title text</span>');
}]);
app.component('prmFacetExactAfter', {
bindings: {parentCtrl: '<'},
controller: 'FacetExactAfterController',
});