mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
Fix example for initial state service
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
@@ -85,7 +85,7 @@ of the `load` method and will be called when the dashboard is loaded.
|
||||
* Execute widget bootstrap code like loading scripts and providing initial state
|
||||
*/
|
||||
public function load(): void {
|
||||
$initialStateService->provideInitialState('myapp', 'myData', []);
|
||||
$this->initialStateService->provideInitialState('myapp', 'myData', []);
|
||||
\OCP\Util::addScript('myapp', 'dashboard');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user