{"id":2178,"date":"2022-08-30T15:22:42","date_gmt":"2022-08-30T15:22:42","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/04\/angular-js-breaks-in-safari-but-not-chrome-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:42","modified_gmt":"2022-08-30T15:22:42","slug":"angular-js-breaks-in-safari-but-not-chrome-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/angular-js-breaks-in-safari-but-not-chrome-collection-of-common-programming-errors\/","title":{"rendered":"Angular JS breaks in Safari but not Chrome-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve written an application that works great in the desktop browser but breaks in Safari. Does Angularjs support the iPad&#8217;s native browser?<\/p>\n<p>I&#8217;ve been googling and can&#8217;t find anything that isn&#8217;t related to PhoneGap. It&#8217;s just javascript in a browser isn&#8217;t it?<\/p>\n<p>How do you even debug this?<\/p>\n<p>I was using reserved words like <code>delete<\/code> in my services which broke safari and <strong>not<\/strong> chrome. On both desktop and tablet safari is broken but chrome works. I have to switch the reserved words to something like <code>remove<\/code>.<\/p>\n<p>http:\/\/paste.laravel.com\/NNB<\/p>\n<ol>\n<li>\n<p>On the iPad go Settings &gt; Safari &gt; Developer &gt; Enable Debugging<\/p>\n<p>On top of safari you&#8217;ll get a &#8220;1 Error&#8221; or &#8220;19 Errors&#8221; and when you click the bar it will list out the console for you.<\/p>\n<\/li>\n<li>\n<p>Angular is only javascript and i do a test, my angular lib load and all works well on my ipad browser. So probably an error in your code ^^<\/p>\n<\/li>\n<li>\n<p>AngularJS 1.0.7 works fine on my iPad (first edition) with IOS 5.whatever.the.last.supported.version.was! It&#8217;s surprisingly quick, too, although Mobile Safari crashes with depressing regularity when it runs out of memory! This happens on many other web sites, though.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-04 02:51:41. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve written an application that works great in the desktop browser but breaks in Safari. Does Angularjs support the iPad&#8217;s native browser? I&#8217;ve been googling and can&#8217;t find anything that isn&#8217;t related to PhoneGap. It&#8217;s just javascript in a browser isn&#8217;t it? How do you even debug this? I was using reserved words like delete [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[],"class_list":["post-2178","post","type-post","status-publish","format-standard","hentry","category-laravel","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2178"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2178\/revisions"}],"predecessor-version":[{"id":8872,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2178\/revisions\/8872"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}