Fix example for initial state service

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg
2021-03-09 18:04:03 +01:00
parent 84a690983c
commit 4512d7b878

View File

@@ -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');
}
}