Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo đŸ› ïž (at Devcon) pfp
Darryl Yeo đŸ› ïž (at Devcon)
@darrylyeo
I absolutely adore Svelte for this. `? :` and `.map()` / `key={}` / `<></>` (or `<Fragment>`) take so much brainpower, both to write and to interpret. `{#if}` / `{:else}` and `{#each}` leave absolutely no room for confusion. https://learn.svelte.dev/tutorial/else-if-blocks
8 replies
0 recast
20 reactions

rapha pfp
rapha
@rapharrrr
Easy on the eyes. Very similiar in Vue with Directives : https://vuejs.org/api/built-in-directives.html#v-else
2 replies
0 recast
0 reaction

Darryl Yeo đŸ› ïž (at Devcon) pfp
Darryl Yeo đŸ› ïž (at Devcon)
@darrylyeo
Vue’s `v-if` and Angular’s old `*ngIf` directive always read a little backward to me though, since the attribute comes after the name of the element that you want to make conditional. I prefer the all-encapsulating control flow syntax of Svelte and the new Angular: https://angular.dev/api/core/@if
0 reply
0 recast
1 reaction