parameters determined angular SRI

{} from the Location Import '@ Angular / Common' 
Import Router} from { '@ Angular / Router' constructor (Private LOCATION: the Location, Private Router: Router) { 
    router.events.pipe (filter ((Event) => Event the instanceof NavigationEnd)). subscrible (Event => { 
    event.url current routing information (not including the automatic jump) 
    event.urlAfterRedirects current routing details (temporary automatic skip) 
  }) 
}

 

Guess you like

Origin www.cnblogs.com/lskzj/p/11752789.html