Yup, I agree. Something like RSVP.hash —> component attributes is what I was thinking
-
-
Replying to @brianmfitch @amatchneer and
I think passing them to the component via template itself should do the trick. Top level template, over top level component/view is empowering.
1 reply 0 retweets 0 likes -
Replying to @stefanpenner @amatchneer and
I’m really psyched about removing the existing layers between URL and the first component. If I had my way the mental model would be: URL —> Route —> Component Tree. Bye bye top level template and controllers.
1 reply 0 retweets 0 likes -
Replying to @brianmfitch @amatchneer and
I’m less so, I prefer top level template but still no controller. It keeps how you invoke components consistent (amongst other simplicity things. Ill think about how to articulate this better. I am struggling apparently
2 replies 0 retweets 0 likes -
Replying to @stefanpenner @brianmfitch and
You still need some way to pass args, but I think `
@names` + a new route hook is all you need.2 replies 0 retweets 4 likes -
-
Replying to @stefanpenner @wycats and
This is a completely quick, not fully thought through look at what it could look like:https://gist.github.com/thoov/985e5689058bee791874e88c16899c00 …
1 reply 1 retweet 7 likes -
Replying to @Thoov @stefanpenner and
This is really cool! I’m probably being dense, but I still don’t see the advantage of the template invoking the component vs the data() hook passing args and invoking it directly. Removing the top template reduces concepts devs need to learn.
2 replies 0 retweets 0 likes -
Replying to @brianmfitch @Thoov and
There's no reason you couldn't give the top component a class, but on the other hand what do you really need it for?
1 reply 0 retweets 0 likes -
Replying to @wycats @brianmfitch and
Better: make it have outer HTML semantics, same as Glimmer components, and that problem just goes away.
1 reply 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.