Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@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
10 replies
2 recasts
32 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
1 reply
0 recast
1 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@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