Javascript 角巡更指令问题

Javascript 角巡更指令问题,javascript,angularjs,Javascript,Angularjs,我用过下面的旅游指南 <tour step="currentStep" <span tourtip="Few more steps to go." tourtip-next-label="Close" tourtip-placement="bottom" tourtip-offset="8

我用过下面的旅游指南

<tour step="currentStep" 
                    <span tourtip="Few more steps to go."
                          tourtip-next-label="Close"
                          tourtip-placement="bottom"
                          tourtip-offset="80"
                          tourtip-step="0">
                    </span>
</tour>

您可以将
ng if
指令与custom指令(我称之为toggler)结合使用,该指令将根据您的需要设置
ng if
所依赖的值,例如:

<tour toggler step="currentStep" 
    <span ng-if="open" tourtip="Few more steps to go."
        tourtip-next-label="Close"
        tourtip-placement="bottom"
        tourtip-offset="80"
        tourtip-step="0">
    </span> 
</tour>

你试过ng吗-click@Madhu是的,但当我使用它时,当我点击x按钮时,它也会打开弹出窗口?尝试将它包装在
div
中,然后在
div
上点击
ng。太好了。非常感谢我的朋友:)