Skip to content

File tree

1 file changed

+2
-2
lines changed
  • platform/nativescript/compiler/directives

1 file changed

+2
-2
lines changed
 

‎platform/nativescript/compiler/directives/model.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { addHandler, addAttr } from 'compiler/helpers'
22
import { genComponentModel, genAssignmentCode } from 'compiler/directives/model'
3-
import { getViewMeta } from '../../element-registry'
3+
import { isKnownView, getViewMeta } from '../../element-registry'
44

55
export default function model(el, dir, _warn) {
6-
if (el.type === 1 && el.plain) {
6+
if (el.type === 1 && isKnownView(el.tag)) {
77
genDefaultModel(el, dir.value, dir.modifiers)
88
} else {
99
genComponentModel(el, dir.value, dir.modifiers)

0 commit comments

Comments
 (0)
Please sign in to comment.