popover元素的popover-append-to-body属性似乎不适用于angular-ui

Ben*_*ier 5 popover twitter-bootstrap angularjs angular-ui

我正在使用角度UI.(docs,github)

我想制作一个贴在身上的弹出窗口.

但我尝试了这个属性,并且我的popover没有附加在身体上.(注意其他属性,比如placement='right'做工作.)

弹出窗口的Html:

<a popover="click me" popover-placement='bottom' popover-append-to-body='true'>
  popover text
</a>
Run Code Online (Sandbox Code Playgroud)

注意:在源代码中,我找不到任何相关内容popover-append-to-body

Ben*_*ier 5

看起来它适用于最新版本的角度ui.

这个plunker它确实有效.(单击运行,然后单击dynamicPopoverText,然后检查弹出窗口,看看它确实在下面body).

编辑:问题是在我的项目中,我使用的是angular-ui 0.1.0而不是angular-ui 0.4.0