handle directives on components (fixes #216)

pull/217/head
Rich-Harris 8 years ago
parent b23572d7e8
commit e7dd885ecf

@ -9,6 +9,8 @@ export default {
} }
const props = node.attributes.map( attribute => { const props = node.attributes.map( attribute => {
if ( attribute.type !== 'Attribute' ) return;
let value; let value;
if ( attribute.value === true ) { if ( attribute.value === true ) {

@ -0,0 +1,9 @@
<div><Widget ref:widget/></div>
<script>
import Widget from './Widget.html';
export default {
components: { Widget }
};
</script>
Loading…
Cancel
Save