Thursday, 5 August 2021

angular dynamic base url binding

 dynamic base url


providers: [
    {
      provide: APP_BASE_HREF,
      useValue: window['base-href']
    }
    ],
  })


<base href="/">
  <script>
    window['base-href'] = window.location.pathname;
    console.log(window['base-href']);
  </script>

No comments:

Post a Comment

Meet BootUI | Scan AI-Generated Code & Find What AI Missed !

 very usefull link to verify ai content https://www.youtube.com/watch?v=pULGt0Rme58 Click