TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Vue.js: JavaScript MVVM made simple

54 pointsby EvanYouover 11 years ago

10 comments

ghayesover 11 years ago
I feel like the design is heavily influenced by Angular (which is good, since Angular makes many good decisions). Is the intention of Vue to be a lighter-weight alternative? Are there features and design decisions that Vue makes differently? (E.g. the model concept seems simpler in Vue)
评论 #7170656 未加载
评论 #7170457 未加载
pedalpeteover 11 years ago
Since first toying with Ember early on, I&#x27;ve decided that a good test of many of these MVVM libraries is to see how we can easily share data across multiple views.<p>I&#x27;m not entirely sure how that would work Vue.js. I suppose at some point you could have<p>var parent = new Vue(options); parent.$data = [object,object,object];<p>var child = new Vue(options); child.$data = parent.$data[i];<p>seems simple enough, what&#x27;s your scratch test before trying a new library?
评论 #7170689 未加载
评论 #7170174 未加载
opayenover 11 years ago
Is the use of of custom attributes a good practice? (example: &lt;div v-text=&quot;message&quot;&gt;&lt;&#x2F;div&gt;)?<p>I thought the data-* attributes were the recommended way (<a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;Guide&#x2F;HTML&#x2F;Usin...</a>).
评论 #7171743 未加载
sheldorover 11 years ago
Great performance. Would sacrifice some code clarity and readability to get theses numbers (<a href="http://vuejs.org/perf/" rel="nofollow">http:&#x2F;&#x2F;vuejs.org&#x2F;perf&#x2F;</a>).<p>My only concern with all these new libraries is how long they will be around.
nigekellyover 11 years ago
Looking at those performance tests makes me wonder why knockout isn&#x27;t more popular.
评论 #7172768 未加载
malkomalkoover 11 years ago
After reading the documentation, I have to say this seems to be a nice medium b&#x2F;w angular and knockout. I love how the api is really small and you just use plain js objects just like in knockout.js.
prodev42over 11 years ago
I put the quick example in getting started section into jsfiddle (loading vue.js.min). The completed tasks are not strike through...any idea?
评论 #7171217 未加载
RivieraKidover 11 years ago
I do very little frontend development but I really like this. Seems much more lightweight than angular or ember but similarly powerful.
codeapeover 11 years ago
What would it take to add IE8 support?
评论 #7171038 未加载
评论 #7170680 未加载
评论 #7170129 未加载
al2o3crover 11 years ago
Every time I see a project declare &quot;NO DEPENDENCIES!&quot; I read it as &quot;NOW WITH MOAR REINVENTED WHEELS!&quot;. Yup.
评论 #7172429 未加载
评论 #7170827 未加载
评论 #7170506 未加载