mirror of https://github.com/sveltejs/svelte
parent
1f79099d2f
commit
2231a7eb19
@ -1,7 +1,3 @@
|
|||||||
<p>Hello world!</p>
|
<svelte:meta tag="my-element"/>
|
||||||
|
|
||||||
<script>
|
<p>Hello world!</p>
|
||||||
export default {
|
|
||||||
tag: 'my-element'
|
|
||||||
};
|
|
||||||
</script>
|
|
@ -1,11 +1,5 @@
|
|||||||
<Widget/>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Widget from './Widget.html';
|
import Widget from './Widget.html';
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
Widget
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<Widget/>
|
@ -1,11 +1,5 @@
|
|||||||
<Widget/>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Widget from './widget/Widget.html';
|
import Widget from './widget/Widget.html';
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
Widget
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<Widget/>
|
@ -1,11 +1,5 @@
|
|||||||
<Widget/>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Widget from './Widget.html';
|
import Widget from './Widget.html';
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
Widget
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<Widget/>
|
@ -1,13 +1,5 @@
|
|||||||
<p>The answer is {answer}</p>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import answer from 'the-answer';
|
import answer from 'the-answer';
|
||||||
|
|
||||||
export default {
|
|
||||||
data: function () {
|
|
||||||
return {
|
|
||||||
answer: answer
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<p>The answer is {answer}</p>
|
@ -1,9 +1,9 @@
|
|||||||
<p>Hello world!</p>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
import { onmount } from 'svelte';
|
||||||
onrender () {
|
|
||||||
console.log( 'here' );
|
onmount(() => {
|
||||||
}
|
console.log( 'here' );
|
||||||
};
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<p>Hello world!</p>
|
@ -1,9 +1,9 @@
|
|||||||
<p>Hello world!</p>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
import { onmount } from 'svelte';
|
||||||
onrender () {
|
|
||||||
console.log( 'here' );
|
onmount(() => {
|
||||||
}
|
console.log( 'here' );
|
||||||
};
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<p>Hello world!</p>
|
Loading…
Reference in new issue