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

Enviri JD for BI

  Job Description: Experience working closely with business users/leaders. Well-versed in requirement gathering and can lead business users ...