2 ms·
Er, can you explain further with an example? I'm confused about using both something like {{#if}} and pure JS
by spraak 10y ago
Er, can you explain further with an example? I'm confused about using both something like {{#if}} and pure JS
- rich_harris 10y agoSee e.g. http://bit.ly/2fRcyJq http://bit.ly/2fRcyJq. The {{#if ...}} part is a control flow directive that allows Svelte to understand the structure of your app, but the condition of that if block is just a JS expression
- spraak 10y agoBut it's limited to if, else, and elseif expressions?