$generatePath
Last updated
Last updated
$generatePath(string routeName, Object params = {}) : string
The $generatePath instance method makes it possible to the absolute path to any using its name and . Using this method ensures all links are automatically updated whenever a route is changed.
Alternatively, you may use a within your component templates to generate routes declaratively.