fix(menu): fix selected determination for pathMatch partial router links

This commit is contained in:
Dmitry Nehaychik 2016-10-27 17:50:23 +03:00
parent f60fa581a3
commit 3e66636a05

View file

@ -108,7 +108,7 @@ export class BaMenuService {
}
protected _selectItem(object:any):any {
object.selected = this._router.isActive(this._router.createUrlTree(object.route.paths), object.pathMatch !== 'full');
object.selected = this._router.isActive(this._router.createUrlTree(object.route.paths), object.pathMatch === 'full');
return object;
}
}