清除按钮ng-单击不触发事件

时间:2015-09-07 11:39:09

标签: jquery angularjs twitter-bootstrap-3 angular-ui-bootstrap angularjs-ng-click

我有以下代码,ng-click不适用于清除按钮。它只关闭下拉菜单。可能是什么原因?



var xml = new XmlDocument();
xml.Load(new StreamReader(xml));

foreach (XmlNode x1 in xml.GetElementsByTagName("Adapter"))
{
    Console.WriteLine(x1.Attributes["Name"].Name + "::" + x1.Attributes["Name"].Value);
}

var p = xml.GetElementsByTagName("Monitors");
foreach (XmlNode x in p)
{
    foreach (XmlElement e in x)
    {
        Console.WriteLine(e.Attributes["ConnectorIndex"].Name + "::" + e.Attributes["ConnectorIndex"].Value);
        Console.WriteLine(e.Attributes["ViewType"].Name + "::" + e.Attributes["ViewType"].Value);
    }
}




JS:



<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 borderAtRight" 
					
    <!--  Dropdown and Menu -->
    <div class="btn-group topFilterCtrl filterDropdn" dropdown dropdown-append-to-body id="ddlStatus">
	<div id="btn-append-to-body" type="button" class="btn btn-primary panelTextFont14 noBorder" dropdown-toggle> Status 
        <span class="caret caretSpan"></span>
    </div>
    <ul class="dropdown-menu dropDownLabel" role="menu" aria-labelledby="btn-append-to-body" ng-show="!vm.showthis">
	<div class="customScroll">
	    <li role="menuitem" class="changeColorOnHover" ng-repeat="optionThis in vm.List track by $index" ng-show="list.value != null">
		<a href="#">
		    <div class="checkbox" id="{}index}" ng-show="this.value != null" ng-click="vm.applyFilterForResultCount()" ng-change="vm.getCount(this)" ng-model="this.flag">
	                <label>
                            <input type="checkbox" ng-click="vm.clickStatusCheckBox(this);$event.stopPropagation();" ng-show="this.value != null" />
				{{this.value}}
			</label>
		    </div>
		</a>
	    </li>
	</div>
        <!--Clear div-->
        <li role="menuitem" class="btn btn-default buttonli" ng-click="vm.clearAll()">
	    <a href="#">
                <p>
                    <span class="clearAllBtn">Clear</span>
     	 	    <span class="dropDownBtnItem">  – All </span>
	        </p>
	    </a>
	</li>
   </ul>
</div>
&#13;
&#13;
&#13;

纳克单击=&#34; vm.clearAll()&#34;不起作用,因此没有清除复选框。

0 个答案:

没有答案