javascript - HTML tag in scope of angularjs -


i need put <br /> tag in $scope.mytext in controller, how ?

something $sce.trustashtml("<br />") should work.

$sce.trustashtml() returns string safe use ng-bind-html. can read more here

$sce.trustashtml vs. ng-bind-html


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -