【问题标题】:ngdialog watch function not working angularjsngdialog监视功能不起作用
【发布时间】:2016-08-26 13:39:27
【问题描述】:

我把插件放在我的屏幕上。在弹出窗口中,我放置了搜索框,但监视功能不适用于搜索框。如果我将搜索框从弹出窗口中删除,那么到那时手表工作。弹出式监视功能不起作用。我能做什么?

ng对话框

<script type="text/ng-template" id="userDialogId">
        <input type="text" class="text-box" ng-model="searchUsersonly" ng-change="searchUserbyChange" placeholder="Search users">
    {{counted}}

$scope.counted
$scope.$watch("searchUsersonly", function(query){
    $scope.counted++
});

http://ngmodules.org/modules/ngDialog

【问题讨论】:

    标签: javascript angularjs watch ng-dialog


    【解决方案1】:

    在控制器内放一个,然后就可以正常工作了

    【讨论】:

      猜你喜欢
      • 2015-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-25
      • 1970-01-01
      • 1970-01-01
      • 2015-10-26
      • 1970-01-01
      相关资源
      最近更新 更多