based on ng routeSegment