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

HCL healthcare

 hcl health care f2f second round interview asked more uestions on microservice 1.apim manage all apis in one place 2.sql profiler in one fo...