【发布时间】:2013-04-04 18:31:53
【问题描述】:
有人有使用 angular-bootstrap-prettify.js 漂亮打印指令的经验吗?我在让它工作时遇到问题。 这是我的示例:http://jsfiddle.net/mjxNV/
<div ng-app>
<div ng-controller="Ctrl1">
<pre class="prettyprint linenums">
<code class="lang-html">
<div class="container">
<div class="left_column">
<span>Small Text</span>
</div>
<div class="r_ightcolumn2">
<span>Small Text</span>
</div>
</div>
</code>
</pre>
</div>
</div>
我的代码已显示,但它从未经过漂亮打印标记化。我做错了什么?
【问题讨论】:
-
需要创建模块并注入外部指令作为依赖