What is the difference between $ window.location.reload () and $ route.reload () in Angular.js?
I used these two things, but both work the same.
Can someone explain the differences?
$window.location.reload() - Used to reload the page
$window.location.reload()
$route.reload() - Forces $ route service to reload the current route, even if $location not changed.
$route.reload()
$location
As a result of this, ngView creates a new area and restores the controller.
Source: https://habr.com/ru/post/984541/More articles:Connecting to DBUS system signals using gdbus-codegen - systemdHow to configure a firewall to always have a cron job? - vagrantRedisSessionStateStore problem with multiple sites - c #How to add android: largeHeap = "true" in the manifest file using the Plugin.xml file in the phonegap plugin - androidSyslog timestamp without a year? - elasticsearchLogstash: using date / time in file name as imported field - grokNDK for AndroidStudio - android-studioGitignore Android device will not ignore .iml - gitHow to underline text using printf in C - cHow to use dronekit with SITL vagrant VM from Wiki developer - pythonAll Articles