{"id":8021,"date":"2015-11-21T13:40:45","date_gmt":"2015-11-21T13:40:45","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/21\/force-view-to-reload-in-ionic-framework-open-source-projects-driftyco-ionic\/"},"modified":"2022-08-30T15:03:03","modified_gmt":"2022-08-30T15:03:03","slug":"force-view-to-reload-in-ionic-framework-open-source-projects-driftyco-ionic","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/21\/force-view-to-reload-in-ionic-framework-open-source-projects-driftyco-ionic\/","title":{"rendered":"force view to reload in ionic framework-open source projects driftyco\/ionic"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a60c3a5780823dd6779972155afb38c1?s=128&amp;d=identicon&amp;r=PG\" \/> <strong>JimTheDev<\/strong><\/p>\n<p>Welcome to the framework! Actually the routing in Ionic is powered by ui-router. You should probably check out this previous SO question to find a couple of different ways to accomplish this.<\/p>\n<p>If you just want to reload the state you can use:<\/p>\n<pre><code>$state.go($state.current, {}, {reload: true});\n<\/code><\/pre>\n<p>If you actually want to reload the page (as in, you want to re-bootstrap everything) then you can use:<\/p>\n<pre><code>$window.location.reload(true)\n<\/code><\/pre>\n<p>Good luck!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JimTheDev Welcome to the framework! Actually the routing in Ionic is powered by ui-router. You should probably check out this previous SO question to find a couple of different ways to accomplish this. If you just want to reload the state you can use: $state.go($state.current, {}, {reload: true}); If you actually want to reload the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8021","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8021","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=8021"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8021\/revisions"}],"predecessor-version":[{"id":8689,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8021\/revisions\/8689"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}