←back to thread

174 points tipiirai | 1 comments | | HN request time: 0.533s | source
Show context
veidelis ◴[] No.42735834[source]
Here we to with the "minimalistic stringy language" again.

<a :for="src, i in images" class="{ current: i == index }" @click="index = i"></a>

replies(6): >>42736027 #>>42737524 #>>42740858 #>>42745364 #>>42747142 #>>42749879 #
1. lelanthran ◴[] No.42737524[source]
> <a :for="src, i in images" class="{ current: i == index }" @click="index = i"></a>

Seconded.

I gotta be honest: while I actually am sold on the principles in the rationale, I'm not so crazy about what the implementation looks like.