4 ms·
Ng-book 2 is out
- scope 11y agowait, i thought Angular 2 is in the early stages, so there's no guarantee when it's "ready" the API's would stay the same as in the book or did I miss the news?
- pan69 11y agoThis is a pre-release version that is approximately 25% complete. Updates will be released as they are finished (roughly every week). Buying now entitles you to free updates!
- user1241320 11y agoIt isn't clear to me if with Angular2 you're "forced" to use Typescript. All the examples I see use it. Haven't found a full thing using es5 or es6.
- davej 11y agoTypescript compiles down to ES5, so yes you can write in ES5 but it's not as pretty. You can create a class the standard way using `prototype` and from memory the annotations look something like this: MyComponent.annotations = [ new angular.Component({ selector: 'my-component' }), new angular.View({ template: '<div></div>' }) ];
- highpixels 11y agoThey recently announced a "cleaner" syntax for ES5 mode. Looks more like the Angular 1 syntax. http://blog.thoughtram.io/angular/2015/07/06/even-better-es5-code-for-angular-2.html http://blog.thoughtram.io/angular/2015/07/06/even-better-es5...
- keedot 11y agoNo, you don't have to use TypeScript, the angular dev team has been clear on this. You don't have to use atscript either. That said, typescript is pretty slick, and is essentially ES6+, I'd recommend giving it a shot before dismissing it.
- user1241320 11y agoGreat. As far as I know there's no atscript anymore. So that's clear. But again browsing around https://angular.io/ https://angular.io/ one would read TS all over the place and, surprisingly, es6 is barely ever mentioned. edit I'm not dismissing TypeScript (in fact I love types being also a Scala dev)... I was just surprised Angular2 skips es6 altogether. That's it.
- ShMcK 11y agoActually, the ES6 and TypeScript versions are virtually indistinguishable, so it's not worth posting both on the site. The only difference being the types/interfaces are dropped in ES6.
- justwannasing 11y ago"Online tutorials are inconsistent and often out of date." So buy a paper book? Aren't those out of date as soon as they're published?
- githulhu 11y agoThis seems to be an ebook, the image of a paper book at the top is kind of misleading. https://www.ng-book.com/2/#packages https://www.ng-book.com/2/#packages
- jashmenn 11y agoIt's an ebook primarily, though we'll publish a paper version once the first edition is done. We keep our Ebooks up to date. For instance, ng-book one has been updated over 30 times in the last two years. We plan to do the same with ng book 2. I don't know if you've tried to use Angular 2 yet, but the API is still in flux so there are a lot of blog posts that don't work anymore. The examples and sample code in our book, though it's still early, they all work. Email me us@fullstack.io and I'd be glad to give you a free copy to try it out.
- philbarr 11y ago$59! For a book that's 25% complete?! Ouch. Oh, but I get "free updates". Well for $59 I should bloody well hope so.
- revskill 11y agoWhy Angular ? Use React instead. You can benefit from "Learn once, write everywhere" on the web, mobile platforms without headache!.
- _ak 11y agoWhy React?
- revskill 11y ago" You can benefit from "Learn once, write everywhere" on the web, mobile platforms without headache!." Is it enough for the reason ?
- pan69 11y agoI looked into React the other day and I got the impression that React is only the "component" part of what will be Angular 2. My guess is that React is a library that allows you to make UI components whereas Angular 2 will be much more of a complete client side framework.
- afloatboat 11y agoI orignally bought ng-book and it was terrible. Bad explanations and the examples were riddled with errors that made it unusable for beginners (its target group). It was being distributed via a self-publishing platform that had a comment form where a large number of people were complaining. The author's reaction was to take it down from that site and still distribute it via other platforms as to hide the negative feedback.
- revskill 11y agoIt's a shame that Good Developers now less SHARE, but EARN as much as possible from their KNOWLEDGE (which was contributed a long time from community). I guess their startup service is as bad as their book, too. P/S: I don't live in EU or America, but i don't think the civilization there could create that bad people.
- acjohnson55 11y agoI generally don't like to bash anyone, but I had the same experience. ng-book, at least the edition I bought, was poorly organized and confusing. There were frequent references to concepts not yet explained. Often, it simply listed documentation of all of the available options on an API, rather than build up from the basic principles and then explain the variations. It felt confused as to whether it was a reference book or a guide.
- jashmenn 11y agong-book 1 is a little of both reference and guide. angular 1 is tricky in that there are several "tripods" of knowledge (ie three concepts that all depend on each other before you can understand the others). That said, I'm sure we can do a better job at explaining many of the concepts. Ng-book 1 has an update in progress as we speak and I'd love to improve the section(s) you're referring to with more of a guide? Would you be willing to let me know which part(s) you'd like to be clearer (either here or via email)? My email is in my profile and I'd love to chat.
- acjohnson55 11y agoI generally don't like to bash anyone, but I had the same experience. ng-book, at least the edition I bought, was poorly organized and confusing. There were frequent references to concepts not yet explained. Often, it simply listed documentation of all of the available options on an API, rather than build up from the basic principles and then explain the variations. It felt confused as to whether it was a reference book or a guide.
- BonoboBoner 11y agoAm I the only one that is not a fan of the new syntax? There is so much duplication and lack of clarity.
- ziles88 11y agoThis is hilarious. It's called the complete book to Angular2 when it hasn't even been officially released yet.