Merge pull request #217 from sveltejs/gh-216

handle directives on components
pull/219/head
Rich Harris 8 years ago committed by GitHub
commit 5cd2ec9c43

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