Skip to content

Commit b94abd9

Browse files
author
Jonathan
committed
Fixed Stencil Example
1 parent ad93f7f commit b94abd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onixjs-stencil/src/components/my-app/my-app.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Component, State } from '@stencil/core';
22
import { OnixClient } from '@onixjs/sdk';
33
import { Browser } from '@onixjs/sdk/dist/adapters/browser.adapters';
4-
import { AppReference } from '@onixjs/sdk/dist/core/reference';
4+
import { AppReference } from '@onixjs/sdk/dist/core/app.reference';
5+
56
@Component({
67
tag: 'my-app',
78
styleUrl: 'my-app.css'
@@ -24,7 +25,6 @@ export class MyApp {
2425
// Setup Component
2526
this.setup();
2627
}
27-
2828
/**
2929
* @method setup
3030
* @description This method will initialize the SDK, create a TodoApp Reference
@@ -34,7 +34,7 @@ export class MyApp {
3434
// Initialize the SDK
3535
await this.sdk.init();
3636
// Create an Application Reference
37-
const todoApp = await this.sdk.AppReference('TodoApp');
37+
const todoApp = this.sdk.AppReference('TodoApp');
3838
// Verify we got a valid AppReference, else throw the error.
3939
if (todoApp instanceof AppReference) {
4040
// Create Component Reference

0 commit comments

Comments
 (0)