pull/1962/head
Richard Harris 6 years ago
parent dcad65b118
commit f0b6be1355

@ -379,7 +379,7 @@ function readAttribute(parser: Parser, uniqueNames: Set<string>) {
parser.allowWhitespace();
const colon_index = name.indexOf(':');
const type = colon_index !== 1 && get_directive_type(name.slice(0, colon_index));
const type = colon_index !== -1 && get_directive_type(name.slice(0, colon_index));
let value: any[] | true = true;
if (parser.eat('=')) {

@ -0,0 +1,9 @@
export default {
props: {
currentUser: { name: 'world' }
},
html: `
<h1>Hello world!</h1>
`
};

@ -0,0 +1,6 @@
<script>
import Nested from './Nested.html';
export let currentUser;
</script>
<Nested user={currentUser}/>
Loading…
Cancel
Save