glowingbear-mainbox/directives/plugin.html
2014-02-06 21:00:07 -05:00

17 lines
488 B
HTML

<div ng-show="data.visible">
<button class="btn btn-primary btn-sm pull-right"
ng-click="data.visible = false">
Hide {{ data.name }}
</button>
<div ng-bind-html="data.content"></div>
</div>
<div ng-hide="data.visible">
<button class="btn btn-sm pull-right"
bo-class="{
'btn-warning': data.nsfw,
'btn-primary': !data.nsfw}"
ng-click="data.visible = true">
Show {{ data.name }}
</button>
</div>