All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Published by Packt Publishing Ltd.
B3 2PB, UK.
Foreword
As a Google Developer Expert for Angular and a frequent blogger and speaker, Minko is well known in the Angular community. Besides being a nice guy, his helpful and technically detailed blog posts have helped many developers to seamlessly transition to the benefits of the latest version of Angular. He is also working on many open source Angular-related projects, such as angular-seed, the Angular style guide, and tools for static analysis of Angular projects.
Published in early 2016 while Angular was still in pre-release, the first edition of Switching to Angular 2 was one of the earliest books to help developers understand the Angular 2 mind-set. This new version brings the content up to date with the recently released version of Angular, including real-world experience of how this affects production applications.
I'm delighted to see this new update and hope it helps you build amazing things with Angular.
Miko Hevery
January 2017
About the Author
Minko Gechev is a software engineer who strongly believes in open source software. He has developed numerous such projects including codelyzer, the AngularJS style guide, aspect.js and many others. Together with Igor Minar, John Papa and Ward Bell, Minko is one of the coauthors of the official Angular style guide.
Minko loves to experiment with theoretical concepts from computer science and apply them in practice. He has spoken about Angular and software development at worldwide conferences and meetups, including ng-conf, ng-vegas, AngularConnect, FDConf, Angular-SF, and Connect.Tech.
I want to thank Miko Hevery for his great contributions to software engineering and the technical review of this book. He helped me provide as precise content as possible. To make the code samples for this book easy to run, I used angular-seed. One of the core contributors of the project is Ludovic Hnin, who helped make it much more than an Angular starter. I also want to thank Daniel Lamb, Radoslav Kirov, and Tero Parviainen who gave me extremely valuable feedback.
I couldn't have completed this book without the dedicated work of the Packt Publishing team.Finally, I want to thank the team at Google for giving us Angular. They are a constant inspiration.
About the Reviewer
Phodal Huang is a developer, creator, and an author. He works for ThoughtWorks as a consultant now. He currently focuses on IoT and frontend development. He is the author of Design Internet of Things and Growth: Thinking in Full Stack (in publishing) in Chinese.
He is an open source enthusiast and has created a series of projects in GitHub. After daily work, he likes to reinvent some wheels for fun. He created the application Growth with Ionic 2 and Angular 2 , which is about coaching newbies how to learn programming. You can find out more wheels in his GitHub page at http://github.com/phodal.
He loves designing, writing, hacking, and traveling; you can also find out more about him through his personal website at http://www.phodal.com.
He has reviewed Learning Internet of Things and Design IoT Projects .
www.PacktPub.com
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.
Why subscribe?
- Fully searchable across every book published by Packt
- Copy and paste, print, and bookmark content
- On demand and accessible via a web browser
Customer Feedback
Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1787125270.
If you'd like to join our team of regular reviewers, you can e-mail us at customerreviews@packtpub.com. We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products!
Preface
AngularJS is a JavaScript development framework that makes building web applications easier. It is used today in large-scale, high-traffic websites that struggle with performance and portability issues, as well as SEO unfriendliness and complexity at scale. The new version of Angular changes these.
It is the modern framework you need to build performant and robust web applications. Getting Started with Angular is the quickest way to get to grips with Angular; it will help you transition into the brave new world of Angular 2 and beyond.