Skip to content

Commit

Permalink
reimplement pr #13, getting svelte's dynamic components
Browse files Browse the repository at this point in the history
  • Loading branch information
njbotkin committed Dec 14, 2017
1 parent d75de9f commit e892519
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 155 deletions.
14 changes: 2 additions & 12 deletions client/routes/app/content/Content.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
<h1>Header</h1>

<Dynamic :component />
<:Component {component} />

<div>
<strong>Footer</strong>
</div>

<script>
import Dynamic from './Dynamic.html'

export default {
components: {
Dynamic
}
}
</script>
</div>
31 changes: 0 additions & 31 deletions client/routes/app/content/Dynamic.html

This file was deleted.

114 changes: 3 additions & 111 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"rollup-plugin-node-resolve": "3.0.0",
"rollup-plugin-string": "^2.0.2",
"rollup-plugin-svelte": "3.3.0",
"svelte": "1.41.3",
"svelte": "~1.45.0",
"svelte-state-renderer": "^1.2.5",
"svelte-transitions": "^1.1.1",
"symlink-cli": "^1.0.0",
Expand Down

0 comments on commit e892519

Please sign in to comment.