File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
/** @module ng2 */
2
2
/** */
3
- import { UIRouter , BaseLocationServices , parseUrl } from " ui-router-core" ;
4
- import { LocationStrategy } from " @angular/common" ;
3
+ import { BaseLocationServices , parseUrl , UIRouter } from ' ui-router-core' ;
4
+ import { LocationStrategy } from ' @angular/common' ;
5
5
6
6
/** A `LocationServices` that delegates to the Angular LocationStrategy */
7
7
export class Ng2LocationServices extends BaseLocationServices {
8
8
constructor ( router : UIRouter , private _locationStrategy : LocationStrategy ) {
9
9
super ( router , true ) ;
10
- this . _locationStrategy . onPopState ( this . _listener ) ;
10
+
11
+ this . _locationStrategy . onPopState ( ( evt ) => {
12
+ if ( evt . type !== 'hashchange' ) {
13
+ this . _listener ( evt ) ;
14
+ }
15
+ } ) ;
11
16
}
12
17
13
18
_get ( ) {
You can’t perform that action at this time.
0 commit comments