webdevelopment

Pages

  • Home
  • Icons /Images
  • Contact Us
  • Templates

Thursday, 7 January 2021

Load same component/Refresh same component

 

Load same component/Refresh same component in angular

loadSameUrl() {

  let currentUrl = this._router.url; // current url import router module inside constructor

  this._router.navigateByUrl('/', {skipLocationChange: true}).then(() => {

      this._router.navigate([currentUrl]);

  });

}

Posted by jagadish at 11:15 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Angular, Same component load, Same Component Refresh
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

jagadish
View my complete profile

Blog Archive

  • ▼  2021 (2)
    • ►  March (1)
    • ▼  January (1)
      • Load same component/Refresh same component
  • ►  2020 (4)
    • ►  February (1)
    • ►  January (3)
  • ►  2019 (10)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (3)
    • ►  March (1)
  • ►  2018 (4)
    • ►  December (1)
    • ►  October (1)
    • ►  June (1)
    • ►  January (1)
  • ►  2017 (4)
    • ►  October (1)
    • ►  March (3)
  • ►  2016 (26)
    • ►  November (1)
    • ►  October (4)
    • ►  September (2)
    • ►  August (5)
    • ►  April (1)
    • ►  March (4)
    • ►  February (4)
    • ►  January (5)
  • ►  2015 (7)
    • ►  July (1)
    • ►  June (5)
    • ►  March (1)
  • ►  2014 (7)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  September (4)
Simple theme. Powered by Blogger.