I had style issues recently and had to downgrade to v1.9.0
Running locally F5 refresh works fine. On our IIS server it is a problem though... So I had to install Url Rewrite into IIS (from Microsoft site), and add the following web.config file to the Angular site root to get it working...
<configuration> <system.webServer> <rewrite> <rules> <rule name="AngularJS" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions>
</rule> </rules> </rewrite> </system.webServer> </configuration>
On further investigation I found that aspnetzero did provide a similar web.config file to be used. I copied this web.config file from the root to the src folder and in the angular.json file I modified assets: to include src/web.config when I do a build (ng build)...
"assets": [ "src/assets", "src/metronic", "src/web.config", "src/favicon.ico"
There were two occurrences in the angular.json file for this.
"assets": [ "src/assets", "src/web.config", "src/favicon.ico",
So then when you do a 'ng build' from here on forward it will include the web.config file in the dist folder.