我正在使用离子过滤器,当我单击过滤器栏中的取消按钮时,我可以删除过滤器,但是当我想要自动执行该操作时无需在移动标签时单击取消按钮我是无法做到这一点。无法去除离子过滤器
// code in angular controller for initializing the filter
var filterBarInstance;
filterBarInstance = $ionicFilterBar.show({
});
// when I shift tabs I am calling the below method to close the modal of the filter(if the modal is opened)
filterBarInstance = $ionicFilterBar.show({
cancel : '',
});
我打电话上述方法whcih存在于过滤器的指令,但该方法没有得到触发。请使用网址https://github.com/djett41/ionic-filter-bar/blob/master/js/ionic.filter.bar.directive.js,并提供一些解决方案来解决此问题。
请人下载你的应用程序,以帮助解决它是不会发生的。需要在问题中提供更多代码,并告诉我们您遇到的错误是什么,以便我们可以提供帮助。 – Jeff
@Jeff:好的,我现在很抱歉我已经更新了我的代码,并提供了我在应用程序中使用的过滤器的指令的url。 – Karthik
@Jeff:为什么你没有删除投票,我更新了我的查询。 – Karthik