Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Niels Henriksen 73 posts 276 karma points
    May 31, 2023 @ 06:42
    Niels Henriksen
    0

    Refresh UI during development of backend

    I am using Umbraco 11 on localhost in Visual Studio

    One of the big problems I have in Umbraco is when I need to extend backend using Angular where it will not update the UI when I refesh the browser.

    I am using Visual Studio and "dotnet build" and "dotnet run" to run but the UI is not being refreshed :(

    How can I force it to reload without having to restart my computer.

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Jun 01, 2023 @ 08:20
    Marc Goodson
    0

    Hi Niels

    If you are using Google Chrome, then if you inspect the page and click settings cog in the top right hand corner of 'DevTools', you'll see a whole list of preferences with checkboxes next to them.

    Tick the option for

    'disable cache (while DevTools is open)'

    And then the other little trick, if you have made a change to the angularJS and it's not updating in the browser, no matter how many times you press 'refresh' then if you open DevTools for the page, and instead right-click the 'refresh' icon, then you get a new secret menu, and one of the options is 'Empty Cache and Hard Reload'.

    Have found the combination of those two things stopped me going insane when first developing angularJS in the backoffice!

    regards

    Marc

  • Niels Henriksen 73 posts 276 karma points
    Jun 08, 2023 @ 12:18
    Niels Henriksen
    0

    Thank you .... I will try that

Please Sign in or register to post replies

Write your reply to:

Draft