UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

35 lines (22 loc) 846 B
--- lang: en title: 'API docs: core.application.setstate' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core permalink: /doc/en/lb4/apidocs.core.application.setstate.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/core](./core.md) &gt; [Application](./core.application.md) &gt; [setState](./core.application.setstate.md) ## Application.setState() method Transition the application to a new state and emit an event <b>Signature:</b> ```typescript protected setState(state: string): void; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | state | string | The new state | <b>Returns:</b> void