artch/angular-route-segment

It is not working with Angular 1.6.2

Opened this issue · 2 comments

Our app is using Angular Route Segment. I upgraded angular-route and angular to 1.6.2 and Angular Route Segment doesn't work. Have you tested it with 1.6?

$routeSegment.contains use to return true when comparing a route. Now it is false. The chain is not present when checking.

I found a work around. In Angular 1.6, they add a ! in the hash. If you call hashPrevix('') it removes it.

$locationProvider.hashPrefix('');

You can see the breaking change in the release notes here:

Look for $location

https://docs.angularjs.org/guide/migration#migrating-from-1-5-to-1-6