The situation is the Oauth server will redirect to my site with this url:
$location.absUrl():http://abcdefg.com/?code=0415fca7f0b126554c768d8fafcba1eL&state=STATE#/wechat
However, the result of the $location.search().code is undefined
So, I want a correct way to get the code part of the URL.
state, etc)