+1 vote
1 view
in Web Technology by (21.3k points)
edited by

When both a query string and anchor tag (hashtag) are visible in a URL, what is the proper order for them to appear?

?var=val#anchor

or

#anchor?var=val

Is there any documentation on this?

1 Answer

0 votes
by (52.8k points)
edited ago by

The proper URL forming with Query String and Anchor Hashtag is to use ? before # you can see the below code:-

?var=var#hash

Are you interested in learning Angularjs from scratch! Have a look at this interesting video on Angularjs provided by Intellipaat:

So, whatever will be after # is client-side.
...