News for hackers. Stuff that matters.
Re:2016 JavaScript Rising Stars by spion on Sunday January 22, 2017 @06:32PM (#13458368)
Nice try, but I expect that the template is contained within the app template (or really any other template), i.e. `<spinner promise=promise> <inner template parameterized on data here></spinner>`. I don't want to be passing raw html strings around.

I'm sure vue has some scoped slot template transclusion thing to solve it... actually scratch that, I'm not sure if the equivalent of plain old first class functions exist in its template language :)

Re:2016 JavaScript Rising Stars by spion on Monday January 23, 2017 @11:00AM (#13463053)
I also forgot:

Its not just about raw HTML: this might need to be a totally custom template with data bindings to other data. Here is an example, the spinner's promise provides the data for a dropdown component which in turn is bound to a member of the parent component's data.

The challenge does need some more work to make it more realistic :)