在新窗口中打开Angular Directive元素

时间:2015-05-09 11:43:37

标签: javascript angularjs

假设我的元素是

<h1>This is a heading</h1>

<a href="#news1">Jump to New content 1</a>
<a href="#news2">Jump to New content 2</a>

<p>hover link and see target element highlight via <code>[href="#target] ~#target </code></p>

<p id="news1"><b>New content 1...</b></p>
<p id="news2"><b>New content 2...</b></p>

<p><b>Note:</b> links must be ahead and adjacent to target or parents target in order to work.</p>

我的指令什么也没做,只打印

&#34;苹果&#34; (以粗体印刷)

然后我有一个按钮需要在新窗口中打开相同的元素,所以我在新窗口中的输出也显示为&#34; Apple&#34; (以粗体显示)。

知道我们该怎么做?

0 个答案:

没有答案