Work in progress
Defining Routes With @Route
@Route("some/path")
public SomePathComponent() {
setText("Hello @Route!");
}
- Assuming your app is running from the root context, when the user navigates to
http://example.com/some/path
, either by clicking a link in the application or entering the address in the address bar, the component is shown on the page.