nl_tokens: LocationHashbangUrl represents url This object is exposed as $location service when developer doesn t opt into html5 mode . It also serves as the base class for html5 mode fallback on legacy browsers .
pl_tokens: function LocationHashbangUrl ( appBase , hashPrefix ) { var appBaseNoFile = stripFile ( appBase ) ; matchUrl ( appBase , this ) ; /**
     * Parse given hashbang url into properties
     * @param {string} url Hashbang url
     * @private
     */ this . $$parse = function ( url ) { var withoutBaseUrl = beginsWith ( appBase , url ) || beginsWith ( appBaseNoFile , url ) ; var withoutHashUrl = withoutBaseUrl . charAt ( 0 ) == '#' ? beginsWith ( hashPrefix , withoutBaseUrl ) : ( this . $$html5 ) ? withoutBaseUrl : '' ; if ( ! isString ( withoutHashUrl ) ) { throw $locationMinErr ( 'ihshprfx' , 'Invalid url "{0}", missing hash prefix "{1}".' , <mask> , hashPrefix ) ; } matchAppUrl ( withoutHashUrl , this ) ; this . $$compose ( ) ; } ; /**
     * Compose hashbang url and update `absUrl` property
     * @private
     */ this . $$compose = function ( ) { var search = toKeyValue ( this . $$search ) , hash = this . $$hash ? '#' + encodeUriSegment ( this . $$hash ) : '' ; this . $$url = encodePath ( this . $$path ) + ( search ? '?' + search : '' ) + hash ; this . $$absUrl = appBase + ( this . $$url ? hashPrefix + this . $$url : '' ) ; } ; this . $$rewrite = function ( url ) { if ( stripHash ( appBase ) == stripHash ( url ) ) { return url ; } } }