Home >Web Front-end >JS Tutorial >Angular ng-repeat dynamically obtained DOM fragment display

Angular ng-repeat dynamically obtained DOM fragment display

PHP中文网
PHP中文网Original
2017-06-17 17:28:161928browse
.filter(<span style="color: #800000">'</span><span style="color: #800000">to_trusted</span><span style="color: #800000">'</span>, [<span style="color: #800000">'</span><span style="color: #800000">$sce</span><span style="color: #800000">'</span><span style="color: #000000">,function ($sce) {
        </span><span style="color: #0000ff">return</span><span style="color: #000000"> function (text) {
            </span><span style="color: #0000ff">return</span><span style="color: #000000"> $sce.trustAsHtml(text);
        }
    }])</span>

 

The above is the detailed content of Angular ng-repeat dynamically obtained DOM fragment display. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn