I want to know, if it's possible to print some html tags (text with anchors) from $scope variable to output view? Look at the fiddle, I'm trying to print anchors from my database, but they are sometimes hidden in text. Thank you very much! :)
html:
<div ng-app>
<h2>Html test</h2>
<div ng-controller="TodoCtrl">
<p data-ng-repeat="line in anchors">
{{line}}
</p>
</div>
</div>
controller:
function TodoCtrl($scope) {
$scope.anchors = [
"<a href='#'>Something</a>",
"Angular ignores html tags :("
];
}
<a href="#">. we're not using HTML3.2 anymore, the#has had a very clear meaning since 1998: it's a uri fragment identifier for the top of the document, and will scroll your page if you use it for a link element. If you don't need a navigating link, but you need "to click and trigger javascript", we have<button>for that.