I have a json array that I iterate through like so...
<div class="panel panel-primary" ng-repeat="c in components">
<div class="panel-body">
<h2>{{c.title}}</h2>
<div ng-include="c.template"></div>
</div>
</div>
The ng-include loads the html template file, i.e. 'components/blockquote.html'
Is there a way to also load the source code from that html file as well, so you can show the component next to the source in an element like so..
<div class="panel panel-primary" ng-repeat="c in components">
<div class="panel-body">
<h2>{{c.title}}</h2>
<div ng-include="c.template"></div>
<code>
<blockquote>
<p>This text is quoted.
</blockquote>
</code>
</div>
</div>
<xmp ng-include="c.template"></xmp>
but xmp tag is deprecated. I can't find a better solution, did you find any?