AngularJS

Front Cover
"O'Reilly Media, Inc.", Apr 8, 2013 - Computers - 196 pages

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
 

Contents

Chapter 1 Introduction to AngularJS
1
Chapter 2 Anatomy of an AngularJS Application
11
Chapter 3 Developing in AngularJS
49
Chapter 4 Analyzing an AngularJS App
77
Chapter 5 Communicating with Servers
101
Chapter 6 Directives
119
Chapter 7 Other Concerns
137
Chapter 8 Cheatsheet and Recipes
153
Index
177
About the Authors
184
Copyright

Other editions - View all

Common terms and phrases

About the author (2013)

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.