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.