如何使用JS light在Angular Framework中为TAG添加标题?

时间:2018-01-07 14:03:16

标签: javascript angularjs

我尝试将标题添加到代码中显示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',
    });

0 个答案:

没有答案