AngularJS up and running: [enhanced productivity with structured web apps]
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Beijing [u.a.]
O'Reilly
2014
|
Ausgabe: | 1. ed. |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | Includes index |
Beschreibung: | XVI, 282 S. graph. Darst. |
ISBN: | 9781491901946 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV042212611 | ||
003 | DE-604 | ||
005 | 20141202 | ||
007 | t | ||
008 | 141127s2014 d||| |||| 00||| eng d | ||
020 | |a 9781491901946 |c pbk |9 978-1-4919-0194-6 | ||
035 | |a (OCoLC)894735147 | ||
035 | |a (DE-599)BVBBV042212611 | ||
040 | |a DE-604 |b ger |e aacr | ||
041 | 0 | |a eng | |
049 | |a DE-11 | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
100 | 1 | |a Seshadri, Shyam |e Verfasser |0 (DE-588)1059921502 |4 aut | |
245 | 1 | 0 | |a AngularJS up and running |b [enhanced productivity with structured web apps] |c Shyam Seshadri and Brad Green |
250 | |a 1. ed. | ||
264 | 1 | |a Beijing [u.a.] |b O'Reilly |c 2014 | |
300 | |a XVI, 282 S. |b graph. Darst. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
500 | |a Includes index | ||
650 | 4 | |a JavaScript (Computer program language) | |
650 | 4 | |a Web applications | |
650 | 4 | |a Open source software | |
653 | |a Electronic books | ||
700 | 1 | |a Green, Brad |e Verfasser |4 aut | |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027651263&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-027651263 |
Datensatz im Suchindex
_version_ | 1804152735502696448 |
---|---|
adam_text | Titel: AngularJS: up and running
Autor: Seshadri, Shyam
Jahr: 2014
Table of Contents Introduction...................................................................ix 1. Introducing AngularJS........................................................1 Introducing AngularJS 2 What Is MVC (Model-View-Controller)? 2 AngularJS Benefits 3 The AngularJS Philosophy 4 Starting Out with AngularJS 10 What Backend Do I Need? 10 Does My Entire Application Need to Be an AngularJS App? 11 A Basic AngularJS Application 11 AngularJS Hello World 12 Conclusion 13 2. Basic AngularJS Directives and Controllers..................................... 15 AngularJS Modules 15 Creating Our First Controller 17 Working with and Displaying Arrays 22 More Directives 26 Working with ng-repeat 27 ng-repeat Over an Object 28 Helper Variables in ng-repeat 29 Track by ID 30 ng-repeat Across Multiple HTML Elements 32 Conclusion 34 3. Unit Testing in AngularJS.................................................... 35 Unit Testing: What and Why? 35 Introduction to Karma 37 iii
Karma Plugins 38 Explaining the Karma Config 39 Generating the Karma Config 4 1 Jasmine: Spec Style of Testing 42 Jasmine Syntax 42 Useful Jasmine Matchers 43 Writing a Unit Test for Our Controller 44 Running the Unit Test 47 Conclusion 4 ^ 4. Forms, Inputs, and Services.................................................. 49 Working with ng-model 49 Working with Forms 51 Leverage Data-Binding and Models 52 Form Validation and States 54 Error Handling with Forms 55 Displaying Error Messages 56 Styling Forms and States 58 Nested Forms with ng-form 60 Other Form Controls 62 Textareas 62 Checkboxes 63 Radio Buttons 64 Combo Boxes/Drop-Downs 66 Conclusion 68 5. All About AngularJS Services................................................. 69 AngularJS Services 69 Why Do We Need AngularJS Services? 70 Services Versus Controllers 72 Dependency Injection in AngularJS 73 Using Built-In AngularJS Services 74 Order of Injection 76 Common AngularJS Services 77 Creating Our Own AngularJS Service 78 Creating a Simple AngularJS Service 78 The Difference Between Factory, Service, and Provider 82 Conclusion 86 6. Server Communication Using $http........................................... 87 Fetching Data with Shttp Using GET 87 A Deep Dive into Promises 91 iv I Table of Contents
Propagating Success and Error 93 The $q Service 94 Making POST Requests with $http 94 $http API 96 Configuration 97 Advanced $http 99 Configuring $http Defaults 99 Interceptors 101 Best Practices 104 Conclusion 106 7. Unit Testing Services and XHRs.............................................. 107 Dependency Injection in Our Unit Tests 107 State Across Unit Tests 109 Mocking Out Services 111 Spies 113 Unit Testing Server Calls 115 Integration-Level Unit Tests 118 Conclusion 120 8. Working with Filters....................................................... 121 What Are AngularJS Filters? 121 Using AngularJS Filters 122 Common AngularJS Filters 124 Using Filters in Controllers and Services 130 Creating AngularJS Filters 131 Things to Remember About Filters 133 Conclusion 134 9. Unit Testing Filters........................................................ 135 The Filter Under Test 135 Testing the time Ago Filter 136 Conclusion 138 10. Routing Using ngRoute.................................................... 139 Routing in a Single-Page Application 140 Using ngRoute 141 Routing Options 143 Using Resolves for Pre-Route Checks 146 Using the SrouteParams Service 148 Things to Watch Out For 149 A Full AngularJS Routing Example 150 Table of Contents | v
Additional Configuration 160 HTML5 Mode 160 SEO with AngularJS 162 Analytics with Angular JS 163 Alternatives: ui-router 165 Conclusion 166 11. Directives................................................................ 169 What Are Directives? 169 Alternatives to Custom Directives 170 ng-include 170 Limitations of ng-include 173 ng-switch 173 Understanding the Basic Options 175 Creating a Directive 175 Template/Template URL 176 Restrict 179 The link Function 181 Scope 182 Replace 192 Conclusion 194 12. Unit Testing Directives..................................................... 195 Steps Involved in Testing a Directive 195 The Stock Widget Directive 196 Setting Up Our Directive Unit Test 197 Other Considerations 201 Conclusion 202 13. Advanced Directives....................................................... 203 Life Cycles in AngularJS 203 AngularJS Life Cycle 203 The Digest Cycle 206 Directive Life Cycle 208 Transclusions 208 Basic Transclusion 211 Advanced Transclusion 212 Directive Controllers and require 216 require Options 221 Input Directives with ng-model 222 Custom Validators 226 Compile 228 vi | Table of Contents
Priority and Terminal 234 Third-Party Integration 234 Best Practices 240 Scopes 240 Clean Up and Destroy 240 Watchers 241 $apply (and Sdigest) 242 Conclusion 242 End-to-End Testing................................... ...................... 245 The Need for Protractor 245 Initial Setup 246 Protractor Configuration 247 An End-to-End Test 248 Considerations 251 Conclusion 254 Guidelines and Best Practices.......................... ...................... 255 Testing 255 Test-Driven Development 255 Variety of Tests 256 When to Run Tests 257 Project Structure 258 Best Practices 258 Directory Structure 259 Third-Party Libraries 263 Starting Point 264 Build 265 Grunt 265 Serve a Single JavaScript File 266 Minification 267 ng-templates 267 Best Practices 268 General 268 Services 269 Controllers 269 Directives 270 Filters 271 Tools and Libraries 271 Batarang 271 WebStorm 272 Optional Modules 273 Table of Contents | vii
Conclusion 274 Index, 275 viii j Table of Contents
|
any_adam_object | 1 |
author | Seshadri, Shyam Green, Brad |
author_GND | (DE-588)1059921502 |
author_facet | Seshadri, Shyam Green, Brad |
author_role | aut aut |
author_sort | Seshadri, Shyam |
author_variant | s s ss b g bg |
building | Verbundindex |
bvnumber | BV042212611 |
classification_rvk | ST 250 |
ctrlnum | (OCoLC)894735147 (DE-599)BVBBV042212611 |
discipline | Informatik |
edition | 1. ed. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01337nam a2200361 c 4500</leader><controlfield tag="001">BV042212611</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20141202 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">141127s2014 d||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781491901946</subfield><subfield code="c">pbk</subfield><subfield code="9">978-1-4919-0194-6</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)894735147</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV042212611</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">aacr</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-11</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Seshadri, Shyam</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1059921502</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">AngularJS up and running</subfield><subfield code="b">[enhanced productivity with structured web apps]</subfield><subfield code="c">Shyam Seshadri and Brad Green</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">1. ed.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Beijing [u.a.]</subfield><subfield code="b">O'Reilly</subfield><subfield code="c">2014</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XVI, 282 S.</subfield><subfield code="b">graph. Darst.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Includes index</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">JavaScript (Computer program language)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Web applications</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Open source software</subfield></datafield><datafield tag="653" ind1=" " ind2=" "><subfield code="a">Electronic books</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Green, Brad</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027651263&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-027651263</subfield></datafield></record></collection> |
id | DE-604.BV042212611 |
illustrated | Illustrated |
indexdate | 2024-07-10T01:15:26Z |
institution | BVB |
isbn | 9781491901946 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-027651263 |
oclc_num | 894735147 |
open_access_boolean | |
owner | DE-11 |
owner_facet | DE-11 |
physical | XVI, 282 S. graph. Darst. |
publishDate | 2014 |
publishDateSearch | 2014 |
publishDateSort | 2014 |
publisher | O'Reilly |
record_format | marc |
spelling | Seshadri, Shyam Verfasser (DE-588)1059921502 aut AngularJS up and running [enhanced productivity with structured web apps] Shyam Seshadri and Brad Green 1. ed. Beijing [u.a.] O'Reilly 2014 XVI, 282 S. graph. Darst. txt rdacontent n rdamedia nc rdacarrier Includes index JavaScript (Computer program language) Web applications Open source software Electronic books Green, Brad Verfasser aut HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027651263&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Seshadri, Shyam Green, Brad AngularJS up and running [enhanced productivity with structured web apps] JavaScript (Computer program language) Web applications Open source software |
title | AngularJS up and running [enhanced productivity with structured web apps] |
title_auth | AngularJS up and running [enhanced productivity with structured web apps] |
title_exact_search | AngularJS up and running [enhanced productivity with structured web apps] |
title_full | AngularJS up and running [enhanced productivity with structured web apps] Shyam Seshadri and Brad Green |
title_fullStr | AngularJS up and running [enhanced productivity with structured web apps] Shyam Seshadri and Brad Green |
title_full_unstemmed | AngularJS up and running [enhanced productivity with structured web apps] Shyam Seshadri and Brad Green |
title_short | AngularJS up and running |
title_sort | angularjs up and running enhanced productivity with structured web apps |
title_sub | [enhanced productivity with structured web apps] |
topic | JavaScript (Computer program language) Web applications Open source software |
topic_facet | JavaScript (Computer program language) Web applications Open source software |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027651263&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT seshadrishyam angularjsupandrunningenhancedproductivitywithstructuredwebapps AT greenbrad angularjsupandrunningenhancedproductivitywithstructuredwebapps |