191 Pages · 2.69 mb ·
Programming Technology
- Contents at a Glance (Page 3) - Contents (Page 184) - About the Author (Page 189) - About the Technical Reviewer (Page 190) - Acknowledgments (Page 191) - Chapter 1: JavaScript You Need to Know (Page 4) - JavaScript Primer (Page 4) - Including Scripts on a Page (Page 4) - Statements (Page 5) - Functions (Page 7) - Parameters and Return Values (Page 8) - Types and Variables (Page 9) - Primitive Types (Page 11) - Booleans (Page 11) - Strings (Page 12) - Numbers (Page 13) - Undefined and Null (Page 14) - JavaScript Operators (Page 14) - Equality vs. Identity (Page 16) - Pre- vs. Post- Increment (Page 18) - Working with Objects (Page 20) - Creating Obj ects (Page 20) - Reading and Modifying an Object’s Properties (Page 21) - Adding Methods to Objects (Page 23) - Enumerating Properties (Page 24) - Control Flow (Page 25) - Loops (Page 25) - Conditional Statements (Page 27) - Working with Arrays (Page 28) - Array Literals (Page 30) - Enumerating and Modifying Array Values (Page 30) - Callbacks (Page 32) - JSON (Page 35) - Summary (Page 36) - Chapter 2: The Basics of AngularJS (Page 37) - Why We Need Frameworks (Page 37) - What Is a Framework? (Page 38) - Downloading and Installing AngularJS (Page 38) - Browser Support (Page 39) - Your First AngularJS Application (Page 40) - Declarative vs. Procedural Programming (Page 43) - Directives and Expressions (Page 43) - What Is a Directive? (Page 43) - What Are Expressions ? (Page 45) - Summary (Page 47) - Chapter 3: Introduction to MVC (Page 48) - Design Patterns (Page 48) - Model View Controller (Page 52) - Model (Page 52) - View (Page 52) - Controller (Page 53) - A Separation of Concerns (Page 53) - Why MVC Matters (Page 53) - MVC the AngularJS Way (Page 54) - Summary (Page 57) - Chapter 4: Filters and Modules (Page 58) - Introduction to Filters (Page 58) - Built-in Filters (Page 61) - The Number Filter (Page 61) - The Date Filter (Page 63) - The limitTo Filter (Page 66) - AngularJS Modules (Page 69) - What Is a Module? (Page 69) - Bootstrapping AngularJS (Page 70) - Creating a Custom Filter (Page 72) - Summary (Page 75) - Chapter 5: Directives (Page 76) - The Basics of Directives (Page 77) - Using Directives (Page 77) - Built-in Directives (Page 82) - ngBind (Page 82) - ngCloak (Page 82) - ngInclude (Page 83) - ngShow and ngHide (Page 83) - ngRepeat (Page 84) - Event-Handling Directives (Page 85) - Using the API Documentation (Page 85) - Creating a Custom Directive (Page 86) - The restrict Option (Page 87) - The template Option (Page 88) - The link Option (Page 88) - Summary (Page 91) - Chapter 6: Working with Forms (Page 92) - HTML Forms Overview (Page 92) - The form Element (Page 92) - The input Element (Page 93) - button (Page 93) - submit (Page 93) - text (Page 94) - checkbox (Page 94) - password (Page 94) - radio (Page 95) - The textarea Element (Page 95) - The select Element (Page 96) - The label Element (Page 97) - Model Binding (Page 97) - AngularJS Forms (Page 102) - Validating Forms (Page 107) - Summary (Page 115) - Chapter 7: Services and Server Communication (Page 116) - Using Services (Page 117) - The $window Service (Page 117) - The $location Service (Page 118) - The $document Service (Page 119) - Why Use Services? (Page 120) - Creating Services (Page 120) - Promises (Page 122) - Server Communication (Page 123) - Handling Returned Data (Page 130) - Accessing Returned Data (Page 130) - Handling Errors (Page 131) - Summary (Page 131) - Chapter 8: Organizing Views (Page 132) - Installing the ngRoute Module (Page 132) - Using URL Routes (Page 134) - Defining Routes (Page 134) - Route Parameters (Page 141) - Eager vs. Conservative Routes (Page 146) - Route Configuration Options (Page 146) - HTML5 Mode (Page 148) - Summary (Page 149) - Chapter 9: AngularJS Animation (Page 150) - Installing the ngAnimate Module (Page 150) - CSS Animation Overview (Page 151) - Transforms (Page 152) - Transitions (Page 154) - Applying Animations (Page 157) - Summary (Page 162) - Chapter 10: Deployment Considerations (Page 163) - Configuration (Page 163) - Testing (Page 165) - Error Handling (Page 167) - Hide Unprocessed Templates (Page 169) - Minification and Bundling (Page 170) - Managing the Build Process (Page 171) - Deployment (Page 173) - Summary (Page 176) - Index (Page 177)