Clear / Clean / Delete angularJS $location.search()

Bresleveloper's AngularJS tutorial:  $location.search() :)

i tried a few thing but the only thing that worked was 
for (prop in $location.search()) 
        $location.search(prop, null);


Comments

  1. Thank you, its really my agenda in this blog to bring simple tutorials with simple enough code to grab the issue

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete


  3. The information which you have provided is very good. It is very useful who is looking for Best Devops Training Institute

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Great solution! Using the loop to clear out the query parameters in $location.search() is a clean and effective approach. It’s always helpful to find these little tricks to keep the URL parameters manageable in AngularJS applications. Thanks for sharing this. Looking forward to more insightful posts like this.Looking to master the world of digital marketing? We provide comprehensive digital marketing courses that equip you with the skills to succeed in today's fast-paced online landscape AI Powered Digital Marketing Course In Hyderabad.

    ReplyDelete

Post a Comment

Popular posts from this blog

OverTheWire[.com] Natas Walkthrough - JUST HINT, NO SPOILERS

SPFx with Angular, Full tutorial

Asp.Net Ending Response options, Response.End() vs CompleteRequest()