Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / index / ViewRegistration

Interface: ViewRegistration

Defined in: router/Router.ts:267

Returned by Router.view — chain .name() and .withLayout() to configure the view route.

Methods

name()

name(routeName): ViewRegistration

Defined in: router/Router.ts:269

Name this view route for URL generation via the route helper.

Parameters

routeName

string

Returns

ViewRegistration


withLayout()

withLayout(layout): ViewRegistration

Defined in: router/Router.ts:271

Wrap the rendered component in a layout that receives it as children.

Parameters

layout

ViewLayout

Returns

ViewRegistration