Skip to content

Mismatch between description and code sample - Step 30 #81

@HerzogIgzorn

Description

@HerzogIgzorn

What is still missing is the event handler that performs a navigation to the detail page by clicking an item in the invoice list: To access the router instance for our app we first need to cast `this.getOwnerComponent()`to our component, then we can call the helper method `getRouter()`. On the router we call the `navTo` method passing the pattern name we defined in our app descriptor for routing to the details page.

To access the router instance for our app we first need to cast this.getOwnerComponent()to our component, then we can call the helper method getRouter().

The code sample:

const router = UIComponent.getRouterFor(this);


public formatter = formatter;

public formatter = formatter;

The public property formatter was never defined in the previous steps. This must be some remains of previous versions of this tutorial.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions