- Paperback: 358 pages
- Publisher: Packt Publishing - ebooks Account (January 5, 2017)
- Language: English
- ISBN-10: 1786469944
- ISBN-13: 978-1786469946
- Product Dimensions: 7.5 x 0.8 x 9.2 inches
- Shipping Weight: 1.6 pounds (View shipping rates and policies)
- Average Customer Review: 5.0 out of 5 stars See all reviews (2 customer reviews)
- Amazon Best Sellers Rank: #428,893 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Learning Vue.js 2 Paperback – December 13, 2016
|New from||Used from|
See the Best Books of 2017 So Far
Looking for something great to read? Browse our editors' picks for the best books of the year so far in fiction, nonfiction, mysteries, children's books, and much more.
Frequently bought together
Customers who bought this item also bought
About the Author
If you buy a new print edition of this book (or purchased one in the past), you can buy the Kindle edition for only $2.99 (Save 87%). Print edition purchase must be sold by Amazon. Learn more.
For thousands of qualifying books, your past, present, and future print-edition purchases now lets you buy the Kindle edition for $2.99 or less. (Textbooks available for $9.99 or less.)
If you are a seller for this product, would you like to suggest updates through seller support?
Top customer reviews
From a basic hello world to real world working app (two, actually), the author teaches you how to build, refactor, test and deploy your Vue.js apps.
The code is really well written and easy to follow. I really enjoyed this book. Five starts!
- somewhat of a JS newbie, but have been working with it for a while using Jquery to do front-end stuff on a Django app, all with require.js and pre-es6 stuff (i.e. no Node.js or equivalent).
- my frontend code was a tangled mess and really I needed to put in something cleaner. Vue fit the bill, because I could read and follow its introductory code right away, unlike React/Angular/Ember. Simple _and_ powerful is always a winning combination in my book. And it didn't seem to _require_ an SPA approach.
- but... Vue, especially 2.0, is newer and has less books or online materials, so I needed something to hold my hands going from basic Hello World type examples to something more complex. All the same, I wanted basic stuff because SPA type examples wouldn't apply and I was more interested in the concepts.
Pheew! Sorry for the long preamble, but it'll give you an idea of what motivates my review.
First, it is quite well structured and easy to follow. You have the obligatory test applications (2 or 3 of them) and they start out using basic Vue features and then, as you go through the chapters and new Vue concepts are introduced, you see them reused, elegantly, in the apps. The apps, IMHO, strike the right balance between not being totally trivial and providing you some insight on what a real Vue-based app might look like. Vs dumping you off at the deep end with some complex code that forces you to think about the app's structure rather than what Vue is doing.
Second, Vue itself mostly doesn't care that much about being used as a simple CDN-sourced library or whether it comes from a more sophisticated Node-based system. So I was following the book writing my JS as usual. But as you start looking at reusing Vue Components, then yes, Node or similar is the more natural (and less complex!) way to go. At some point, the book goes into setting up a basic Node+Webpack and points you where to download its own sample configuration. As I had node + npm already installed, I gave it a try and, lo and behold, the sample app ran perfectly. So I kind of stumbled into modern JS best practices following it along. Hey, this is about 5 pages, so no great amount of unnecessary content if you already use Webpack. But a brilliant leg up if you don't and would like to.
While it builds on basic concepts, it is not dumbed down - for example there is a detailed explanation of how Vue reactivity works under the covers, starting with how you would achieve it by wrapping attributes in getters and setters.
The development concepts conclude with an intro to Vuex, and how to use it to federate data and state among components. This is also important, because, as good as Vue is, it doesn't have a builtin system (events aside) to wire components together and components are compartmentalized by design. That's what Vuex is for. So you can consider Vue+Vuex as the need-to-have for real apps. Again, the concepts are well explained and easy to follow.
There is some further material about testing as well. So quite a comprehensive coverage of what it covers. (Should have included 'slots' though).
Conclusion: I think that, if you were coming in as an experienced Angular/React/etc... SPA-type dev, then not seeing Vue-Router/Resource and the focus on just the basics might hold you back a bit. You would certainly benefit from the way this book complements the, pretty darn good, official Vue documentation. But you might also be able to figure these things out on your own, without this book. Either way some of the more sophisticated stuff is out of scope here. So it's really a choice between are you a self-researcher or I-prefer-a-book type of guy.
To be honest, while I got it at a discount, the full price is somewhat steep - but it's supply and demand stuff - few Vue books, premium price for now (c.f. the dude with the 40page/25$ book) . If you are finding your way into modern JS frontend libraries, Vue's simplicity is appealing and this book is very helpful in gently getting you up to speed.
p.s. For some reason the Kindle Paperwhite version uses the smallest font ever. Whenever reading it, I am forced to switch to the largest or next-to-largest size setting, at which point it works well. But then I have to switch it back to the smaller sizes I usually use for other books. No such problem on the iPad Kindle app.