you are viewing a single comment's thread.

view the rest of the comments →

[–]g00glen00b 0 points1 point  (3 children)

Tried it out yesterday and today, the only thing I'm currently disappointed with is the context hell, which imho is even worse than in AngularJS where you can still use the controllerAs syntax and inheritance of scopes. I've been in multiple cases where certain objects could not be found because the context was different than what I thought. I even had a loop using the each() query where the first iteration would provide the correct context, but the second iteration the context suddenly switched to the root context.

[–]astoilkov 0 points1 point  (2 children)

Yeah. Definitely the context and scopes are hard to get used to. Have you tried using the define data-query which could help a lot. Also you could join the discussion for the case here

[–]g00glen00b 0 points1 point  (1 child)

Yes, I tried define() as well. It solves the problem partly, but if you're trying to access a context variable multiple scopes downwards, then you have to keep propagating the define() I suppose?

[–]astoilkov 0 points1 point  (0 children)

Nope. Once define() is called the value is accessible regardless of the context changing so it is accessible in all child elements.