Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular JS breaks in Safari but not Chrome

I've written an application that works great in the desktop browser but breaks in Safari. Does Angularjs support the iPad's native browser?

I've been googling and can't find anything that isn't related to PhoneGap. It's just javascript in a browser isn't it?

How do you even debug this?

Solution

I was using reserved words like delete in my services which broke safari and not chrome. On both desktop and tablet safari is broken but chrome works. I have to switch the reserved words to something like remove.

http://paste.laravel.com/NNB

like image 551
Michael J. Calkins Avatar asked Jun 11 '13 01:06

Michael J. Calkins


1 Answers

On the iPad go Settings > Safari > Developer > Enable Debugging

On top of safari you'll get a "1 Error" or "19 Errors" and when you click the bar it will list out the console for you.

like image 136
Michael J. Calkins Avatar answered Oct 05 '22 00:10

Michael J. Calkins