mirror of https://github.com/sveltejs/svelte
				
				
				
			
							parent
							
								
									8057884cb6
								
							
						
					
					
						commit
						6596913da3
					
				| @ -0,0 +1,13 @@ | ||||
| <h1>Hello, {{$name}}!</h1> | ||||
| 
 | ||||
| <script> | ||||
| 	import { Store } from '../../../../store.js'; | ||||
| 
 | ||||
| 	export default { | ||||
| 		store () { | ||||
| 			return new Store({ | ||||
| 				name: 'world' | ||||
| 			}); | ||||
| 		}, | ||||
| 	}; | ||||
| </script> | ||||
| @ -0,0 +1,7 @@ | ||||
| export default { | ||||
| 	store: true, // TODO remove this in v2
 | ||||
| 
 | ||||
| 	html: ` | ||||
| 		<h1>Hello, world!</h1> | ||||
| 	`,
 | ||||
| }; | ||||
| @ -0,0 +1,11 @@ | ||||
| <Nested/> | ||||
| 
 | ||||
| <script> | ||||
| 	import Nested from './Nested.html'; | ||||
| 
 | ||||
| 	export default { | ||||
| 		components: { | ||||
| 			Nested | ||||
| 		} | ||||
| 	}; | ||||
| </script> | ||||
					Loading…
					
					
				
		Reference in new issue