我已经击中了这个bug,以及与已经研究了一段时间。这里有两个可能的修复。我还没有测试过它们。
第一种选择:
.config(function($mdGestureProvider) {
$mdGestureProvider.skipClickHijack();
});
第二个选项:请点击指令
app.directive('myclick', function() {
return function(scope, element, attrs) {
element.bind('touchstart click', function(event) {
event.preventDefault();
event.stopPropagation();
scope.$apply(attrs['myclick']);
});
};
});
app.controller('Main', function ($scope) {
$scope.anything = function() {
alert('Hi');
};
});
破碎
<a href="#" ng-click="anything()">click</a>
修复
<a href="#" myclick="anything()">click</a>
https://github.com/angular/material/issues/1406
好了,现在我有机会去尝试和修复我自己并对此解决方案#1以上的伎俩问题! – mediaguru