Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Preface
Why I Wrote This Book
What This Book Covers
Who Should Read This Book
The Chapters in This Book
Conventions Used in This Book
Using Code Examples
SafariĀ® Books Online
How to Contact Us
1. Introduction to AngularJS
JavaScript Client-Side Frameworks
Single-Page Applications
Bootstrapping the Application
Dependency Injection
AngularJS Routes
HTML5 Mode
Modern Search Engines
AngularJS Templates
AngularJS Views (MVC)
AngularJS Models (MVC)
AngularJS Controllers (MVC)
Controller Business Logic
Integrating AngularJS with Other Frameworks
Testing AngularJS Applications
Conclusion
2. The IDE and AngularJS Projects
The IDE
Editing the HTML Code
Editing the JavaScript Code
Creating the Templates
Running the Applications
Testing AngularJS Applications in the IDE
JsTestRunner
Karma Test Runner
Protractor
Conclusion
3. MVC and AngularJS
The Old Way
Choice One
Choice Two
A New and Better Way
Testing Considerations
Responsive Design Considerations
Conclusion
4. AngularJS Controllers
Initializing the Model with Controllers
Adding Behavior with Controllers
Controller Business Logic
Presentation Logic and Formatting Data
Form Submission
Using Submitted Form Data
JS Test Driver
Creating Test Scripts
Testing with JS Test Driver
Testing with Karma
Installing Karma
Karma Configuration
Running Karma Unit Tests
End-to-End Testing with Protractor
Installing Protractor
Configuring Protractor
Creating Protractor Test Specifications
Starting the Selenium Server
Running Protractor
Conclusion
5. AngularJS Views and Bootstrap
AngularJS Templates
Creating the Blog Project
Adding a New Blog Controller
Adding a New Blog Template
Twitter Bootstrap
Adding a Bootstrap Menu
Adding Mock Blog Data
Using CSS3 to Style the Page
Adding Styles and Presentation Logic
Viewing the Blog Post
Running the Blog Application
Testing with Karma
Karma Configuration
Karma Test Specifications
Karma Testing
End-to-End Testing
Protractor Test Specification
Protractor Testing
Conclusion
6. AngularJS and REST Services
REST Services
AngularJS and REST Services
Ways to Create AngularJS Services
Ways to Communicate with REST Services
Updating the Project for REST
REST Services and Controllers
The JSON Response
List Services
Testing Services with Karma
Karma Service Specifications
End-to-End Testing
Protractor Configuration
Protractor Test Specification
Conclusion
7. AngularJS Models
Public REST Services
Changes to the Controllers
Model Properties
Blog Application Public Services
Modifying the HTML
Modifying App.js
Modifying the Controllers
Running the Application
Testing Services with Karma
Karma Service Specifications
Karma Testing
End-to-End Testing
Protractor Test Specification
Protractor Testing
Conclusion
8. Services and Business Logic
Handling User Authentication
Using Basic Authentication
Creating AngularJS Services
Holding User Credentials
Checking User Credentials
Deleting User Credentials
Retrieving User Credentials
Blog Application Business Logic
Using the Business Logic
Testing Services with Karma
Karma Configuration
Karma Test Specifications
Karma Testing
End-to-End Testing
Protractor Configuration
Protractor Test Specification
Protractor Testing
Conclusion
9. AngularJS Directives
The HTML Compiler
What Are Directives?
Building Custom Directives
Naming Conventions for Directives
The Restrict Option
The Template URL
Template Attributes
Adding the Custom Directive
Passing the Title Attribute
Running the Blog Application
Testing Directives with Karma
Karma Configuration
Karma Test Specification
Karma Testing
End-to-End Testing
Protractor Configuration
Protractor Test Specification
Protractor Testing
Conclusion
10. AngularJS Security
Authentication
Adding a Login Service
Adding a Login Controller
Security Modifications to Other Controllers
Adding a Logout Controller
Adding a Login Template
Adding New Routes
Adding a Logout Link
Running the Blog Application
Logging In
Testing with Karma
Karma Configuration
Karma Test Specifications
Karma Testing
End-to-End Testing
Protractor Configuration
Protractor Test Specification
Protractor Testing
One Last Point on Security
Conclusion
11. MEAN Cloud and Mobile
Local Deployment
Installing Node.js, npm, and MongoDB
Installing the NetBeans Node.js Plugin
The MEAN Application
Node.js Public Folder
MEAN Services
MEAN Blog Controllers
MEAN Blog Templates
Adding Comments
Adding Blog Entries
Adding New Routes
Adding Node.js Dependencies
Running the Blog Application Locally
Testing with Karma
Karma Configuration
Karma Test Specifications
Karma Testing
End-to-End Testing
Protractor Configuration
Protractor Test Specification
Protractor Testing
MEAN Deployment to the Cloud
Testing the Cloud Blog
Mobile Version
Conclusion
12. AngularJS and SEO
Old Versus New AngularJS SEO
Getting Found by Search Engines
Google Webmaster Tools
Adding a Sitemap
Microformat Tags
Building Clean Client Code
Building Fast REST Services
Conclusion
References
Index
← Prev
Back
Next →
← Prev
Back
Next →