Kattixie / portfolio

A minimal AngularJS portfolio for project-oriented folks.
1 stars 0 forks source link

Clicking nav item doesn't route to correct view on mobile #21

Closed Kattixie closed 8 years ago

Kattixie commented 8 years ago

This seems to be related to use of both ngHref/href and ngClick on the same link element. Many users have also reported it here: https://github.com/angular/angular.js/issues/6671

Behaves as expected on desktop. This might be why I had manually set a click event listener inside of the nav directive.

Kattixie commented 8 years ago

Removing ngTouch does indeed solve the problem. Obviously I don't want to do this as my solution.

Kattixie commented 8 years ago

Used jQuery/jqLite to bind click event listener to link instead. It's not very Angular, but it's preferable to broken nav items for now.