AngularJS

AngularJS book cover

AngularJS

Author(s): Brad Green (Author), Shyam Seshadri (Author)

  • Publisher: O’Reilly Media
  • Publication Date: May 28, 2013
  • Edition: 1st
  • Language: English
  • Print length: 194 pages
  • ISBN-10: 1449344852
  • ISBN-13: 9781449344856

Book Description

Develop smaller, lighter web apps that are simple to create and easy to test, extend, and maintain as they grow. This hands-on guide introduces you to AngularJS, the open source JavaScript framework that uses Model–view–controller (MVC) architecture, data binding, client-side templates, and dependency injection to create a much-needed structure for building web apps.

Guided by two engineers who worked on AngularJS at Google, you’ll walk through the framework’s key features, and then build a working AngularJS app―from layout to testing, compiling, and debugging. If you have JavaScript experience, you’ll learn how AngularJS helps reduce the complexity of your web app.

  • Dive deep into Angular’s building blocks and learn how they work together
  • Gain maximum flexibility by separating logic, data, and presentation responsibilities with MVC
  • Assemble your full app in the browser, using client-side templates
  • Use AngularJS directives to extend HTML with declarative syntax
  • Communicate with the server and implement simple caching with the $http service
  • Use dependency injection to improve refactoring, testability, and multiple environment design
  • Get code samples for common problems you face in most web apps

Editorial Reviews

Amazon.com Review

Q&A with Brad Green, author of “AngularJS”

Q. What makes this book important right now?

A. Angular’s popularity has increased dramatically this year. It’s gone from being used by early adopters to mainstream deployments at big companies like Netflix, HBO, Morgan Stanley, Salesforce.com, Intuit, eBay, and, of course, Google. We’re hoping this book makes widespread adoption easier for individuals and whole teams wanting to experience the benefits of Angular.

Q. What information do you hope that readers of your book will walk away with?

A. We’ve focused the book on Angular’s core concepts like data binding, dependency injection, and directives and explained how to use them to eliminate boilerplate, organize your code, and extend HTML’s syntax to succinctly express the intent of your application. We also hope that we’ve shown how Angular makes it trivial to write and run tests as a core part of your development process.

Q: What’s the most exciting thing happening in your space?

A. In general, we’re excited that web development is moving from the wild west of hand-built applications to getting huge productivity gains by using a framework. In addition to the incredible apps folks are developing, we’re very excited about the many developer tools and libraries created to work with Angular. Yeoman.io has AngularJS generators to automate your dependency management. Salesforce.com released an Angular-specific mobile development pack. BreezeJS provides rich database management capabilities. AngularUI , KendoUI , Wijmo, and many others have rich component libraries. We’re excited to see what comes next.

Q. Can you give us a few tips to get us started with AngularJS?

  1. Get used to writing tests early! We’ve made it easy and built the fastest test runner on the planet so you get instant feedback on changes to code.
  2. AngularJS apps are structured differently from what you might be used to in jQuery. In Angular, you drive all UI updates by changing model data and binding part of your template appropriately. This includes hiding and showing parts of your app, switching views, and displaying any data.
  3. For the best user experience, make sure you use ng-href, ng-src, and ng-img instead of href, src, and img in your templates. Without these, you may see side effects while the page is loading.
  4. In Angular, there is no main method. Angular takes care of all application bootstrapping and assembling your application based on your specifications the template. If you find you really need to execute a function on load, you can do this through your application module’s run() function. For example: var app = angular.module(‘myApp’, []); app.run(function() { // your initialization code… }

About the Author

Brad Green works at Google as an engineering manager. In addition to the AngularJS project, Brad also directs Accessibility, and Support Engineering. Prior to Google, Brad worked on the early mobile web at AvantGo, founded and sold startups, and spent a few hard years toiling as a caterer. Brad’s first job out of school was as lackey to Steve Jobs at NeXT Computer writing demo software and designing his slide presentations. Brad lives in Mountain View, CA with his wife and two children.

Shyam Seshadri is the owner / CEO of Fundoo Solutions (http://www.befundoo.com), where he splits his time between working on innovative and exciting new products for the Indian markets, and consulting about and running workshops on AngularJS. Prior to Fundoo Solutions, Shyam completed his MBA from the prestigious Indian School of Business in Hyderabad. Shyam’s first job out of college was with Google, where he worked on multiple projects, including Google Feedback (AngularJS’s first customer!), and various internal tools and projects. Shyam currently operates from his office in Navi Mumbai, India.

Amazon Page

代发服务PDF电子书9.9立即求助
1111
打赏
未经允许不得转载:Wow! eBook » AngularJS

觉得文章有用就打赏一下文章作者

支付宝扫一扫

微信扫一扫