2

I am injecting my angular2 application in another app division and by default the url is contains a big query string. How I will set that url and query string as my base url in angular2

exp url: http.example.com/this/thai?this=thhtyy&ttthh


{provide: APP_BASE_HREF, useValue: '/'},

1 Answer 1

1

Its because you are using / as your base URL. you can change your base URL to your first url you are getting in you code.

{provide: APP_BASE_HREF, useValue: window.document.location.href}
Sign up to request clarification or add additional context in comments.

1 Comment

it resolved my issue but its trying to find my static content and javascript files in that url. I want my static contents should be as it is. any idea?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.