AngularJS - ng-click无法在简单的Popup中工作

时间:2017-05-12 12:15:29

标签: jquery angularjs popup

我的问题是问题是ng-click有我的代码:

   <div class="top-login"><a href="" class="register">S'inscrire</a></div>
   <div class="in-login"><a href="" class="login">Se connecter</a></div>
<script>
$(document).ready(function() {

    $("a.login").simplePopup({ type: "html", htmlSelector: "#popup1" });
    $("a.register").simplePopup({ type: "html", htmlSelector: "#popup2" });
});

我用这个例子测试但仍然无法正常工作

<div id="popup2" style="display:none;" >
     <div class="col-md-7" ng-controller="RegisterCtrl">
            ok is here:{{ok}}
            <button  class="cws-button2 " type="button"  ng-click="ok=1" >S'inscrire</button>

    </div>
</div>

ng-click无法正常工作,但没有错误

0 个答案:

没有答案