News for hackers. Stuff that matters.
Re:Why we chose Vue.js by BinaryIdiot on Friday October 21, 2016 @01:56AM (#12758432)
How does Vue.js handle high latency issues? With Angular 1.x I've always had issues where the GUI will "flash" while the HTML is loading and the angular.js has not yet finished loading on a slow connection (so you might briefly see all of these {{message1}} {{message2}} etc on the page). I'm curious how Vue.js handles that case or if it has the same problem.
Re:Why we chose Vue.js by miaumiau2 on Friday October 21, 2016 @02:17AM (#12758509)
ng-cloak is your friend..
Re:Why we chose Vue.js by BinaryIdiot on Friday October 21, 2016 @02:43AM (#12758588)
I guess but it feels like such an anti pattern. I have to tag every thing that uses the template system with ng-cloak and that assumes the angular css loads before the HTML which can still not be guaranteed it's just more likely.

The worst part is many default values could be displayed but now we're hiding sometimes large junks when for the best UX you should show as much of the page as possible.

Ultimately just not a fan of any template engine that relies on being fast enough to hide and replace values in the raw HTML.

Re:Why we chose Vue.js by really_operator on Friday October 21, 2016 @03:23AM (#12758742)
To reduce the need for ng-cloak, use ng-bind

<p ng-bind="value"></p>

instead of

<p>{{value}}</p>

It is preferable to use ngBind instead of {{ expression }} if a template is momentarily displayed by the browser in its raw state before Angular compiles it. Since ngBind is an element attribute, it makes the bindings invisible to the user while the page is loading.

Re:Why we chose Vue.js by BinaryIdiot on Friday October 21, 2016 @04:46PM (#12764590)
Interesting, I forgot about ng-bind (honestly it's a pattern I never see on the web). That is, for sure, the superior pattern.