填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

NavigationExtras

修改 Router 導航策略的選項。為 Router 導航功能提供包含任何這些屬性的物件,以控制應如何構造或解釋目標 URL。

Options that modify the Router navigation strategy. Supply an object containing any of these properties to a Router navigation function to control how the target URL should be constructed or interpreted.

      
      interface NavigationExtras extends UrlCreationOptions, NavigationBehaviorOptions {

  // 繼承自 router/UrlCreationOptions
  relativeTo?: ActivatedRoute | null
  queryParams?: Params | null
  fragment?: string
  queryParamsHandling?: QueryParamsHandling | null
  preserveFragment?: boolean

  // 繼承自 router/NavigationBehaviorOptions
  skipLocationChange?: boolean
  replaceUrl?: boolean
  state?: {...}
}
    

參見