Elentra JS Documentation
1.3
1.3
  • Elentra JS Documentation
  • What's New in Elentra JS 1.3?
  • Guide
    • Introduction
      • Standards & Principles
      • Integrating with ME v1.14.x
      • Upgrading to v1.2
      • Why EJS?
    • Architecture
      • Web APIs
    • Environments
      • Namespaces
      • Configuration
      • Entry Points
      • Bootstrapping
    • File Handling
      • Unified File Handling
      • Use Statement
    • Modules
      • Configuration
      • Components
      • Controllers
    • Routing
      • Logical Controllers
      • Routes
      • Route Collections
      • Path Matching
      • Path Generation
      • ViewLink Component
    • HTTP Library
      • REST Client
      • HTTP Client
    • Internationalization
      • Locales
      • Language Packs
      • ESCL
        • Concepts
          • Strings
          • Clauses
          • Variables
          • Terms
          • Functions
          • Literals (Preview)
        • Unicode
        • Function Reference
          • BOLD
          • ITALIC
          • LINK
          • UCFIRST
    • Plugins
      • Enabling a plugin
      • Core Plugins
        • Directives
          • v-i18n Directive
        • Instance Methods
          • $generatePath
          • $getRoute
          • $redirectTo
          • $setLocale
          • $translate
          • $findRouteByName (DEPRECATED)
        • Instance Objects
          • $api
    • Utilities
      • Throttle Utility
  • API Reference
Powered by GitBook
On this page
  1. Guide
  2. Plugins
  3. Core Plugins
  4. Instance Methods

$getRoute

Introduction

$getRoute() : CompiledRoute

The $getRoute() instance method returns a compiled route object, representing the route currently matched in the address bar.

The compiled route object is useful for looking up matched parameter values, reading metadata from the route definition, and determining the relative position in the routing tree.

Previous$generatePathNext$redirectTo

Last updated 6 years ago