File tree 2 files changed +28
-4
lines changed
platform/nativescript/runtime/components
2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ export class VueKeyedTemplate /* implements KeyedTemplate */ {
101
101
}
102
102
103
103
createView ( ) {
104
- const vnode = this . _scopedFn ( deepProxy ( { } ) )
105
- const nativeView = patch ( null , vnode ) . nativeView
106
- nativeView [ VUE_VIEW ] = vnode
107
- return nativeView
104
+ // we are returning null because we don't have the data here
105
+ // the view will be created in the `patchTemplate` method above.
106
+ // see https://github.com/nativescript-vue/nativescript-vue/issues/229#issuecomment-390330474
107
+ return null
108
108
}
109
109
}
Original file line number Diff line number Diff line change
1
+ const Vue = require ( './nativescript-vue' )
2
+
3
+ Vue . config . silent = false
4
+
5
+ new Vue ( {
6
+ data : {
7
+ items : [ { color : 'red' } , { color : 'blue' } ]
8
+ } ,
9
+ template : `
10
+ <Frame>
11
+ <Page>
12
+ <ActionBar title="Issue #229" />
13
+
14
+ <GridLayout>
15
+ <ListView for="item in items" class="list-group">
16
+ <v-template>
17
+ <Label :backgroundColor="item.color" :text="item.color" padding="50" />
18
+ </v-template>
19
+ </ListView>
20
+ </GridLayout>
21
+ </Page>
22
+ </Frame>
23
+ `
24
+ } ) . $start ( )
You can’t perform that action at this time.
0 commit comments