Immense thanks. This issue has just cost me a morning! Thanks Tim
On Sunday, May 5, 2013 5:19:01 PM UTC+10, Thomas Alton wrote: > > Greetings! > > Long time lurker, first time poster, blah blah. > > I seem to have stumbled across an Angular bug where *right-clicking* a > link will immediately navigate to the "href" destination. I believe I've > narrowed it to the following pre-reqs: > > - Browsing in Firefox (I'm currently on 20.0.1) > - Bootstrap the angular app manually as per the example at > http://docs.angularjs.org/guide/bootstrap#manualinitialization > - Configure $locationProvider with html5Mode(true) > - Inject $location at least once > > I've set up a minimal proof of concept at http://angular.moatra.net (I > would have used plunker, but it was being finnicky). If you > *right-click* on the "Other Link!" link, the location should be updated > to http://angular.moatra.net/other.html > > The easiest work-around is to update the bootstrap code from using > angular.bootstrap(document); to using angular.bootstrap( > document.documentElement); > > It took me a while to track down, so I thought I'd share with the > community. Thanks for the wonderful work! > > -Thomas > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
