Javascript ngdialog监视功能不工作angularjs

Javascript ngdialog监视功能不工作angularjs,javascript,angularjs,watch,ng-dialog,Javascript,Angularjs,Watch,Ng Dialog,我把插件放在我的屏幕上。在弹出窗口,我把搜索框,但手表功能不工作的搜索框。若我把搜索框从弹出窗口中放出来,那个么到时候就可以看到工作了。带弹出式手表功能,不工作。我能做什么 ngDialog 在控制器内放置一个,然后工作正常 <script type="text/ng-template" id="userDialogId"> <input type="text" class="text-box" ng-model="searchUsersonly" ng-ch

我把插件放在我的屏幕上。在弹出窗口,我把搜索框,但手表功能不工作的搜索框。若我把搜索框从弹出窗口中放出来,那个么到时候就可以看到工作了。带弹出式手表功能,不工作。我能做什么

ngDialog


在控制器内放置一个,然后工作正常

<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++
});