File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
onixjs-stencil/src/components/my-app Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { Component , State } from '@stencil/core' ;
2
2
import { OnixClient } from '@onixjs/sdk' ;
3
3
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
+
5
6
@Component ( {
6
7
tag : 'my-app' ,
7
8
styleUrl : 'my-app.css'
@@ -24,7 +25,6 @@ export class MyApp {
24
25
// Setup Component
25
26
this . setup ( ) ;
26
27
}
27
-
28
28
/**
29
29
* @method setup
30
30
* @description This method will initialize the SDK, create a TodoApp Reference
@@ -34,7 +34,7 @@ export class MyApp {
34
34
// Initialize the SDK
35
35
await this . sdk . init ( ) ;
36
36
// Create an Application Reference
37
- const todoApp = await this . sdk . AppReference ( 'TodoApp' ) ;
37
+ const todoApp = this . sdk . AppReference ( 'TodoApp' ) ;
38
38
// Verify we got a valid AppReference, else throw the error.
39
39
if ( todoApp instanceof AppReference ) {
40
40
// Create Component Reference
You can’t perform that action at this time.
0 commit comments