swaf/views/home_dep.svelte

26 lines
575 B
Svelte
Raw Normal View History

2021-03-24 16:07:50 +01:00
<script lang="ts">
export let depTest = 'Success';
export let locals = {};
let locallyDefinedVar = 'correct value';
2021-03-24 16:07:50 +01:00
</script>
<style>
p {
color: brown;
}
</style>
<p>Simple dep test</p>
<p>\locals.</p>
<p>\locals.</p>
2021-03-24 16:07:50 +01:00
<p>locals: {locals}</p>
<p>\locals.route: {locals.route} <br> {locals.dump(typeof locals.route)}</p>
<p>\locals.dump: {locals.dump('bonjour')}</p>
<p>\locals.dump: {locals.dump(locals.app)}</p>
<p>\locals.dump: {locals.dump(NaN)}</p>
<p>\locals.route: {locals.route('auth')}</p>
<p>\locals.route: {locals.route('home')}</p>