Book description
With AngularJS, you can quickly build client-side applications that run well on any desktop or mobile platform, using REST web services for backend processes. You may have heard that the learning curve for this JavaScript MVC framework is too steep, but that’s not the case. This practical guide provides a hands-on approach to learning AngularJS that will have you building high-quality applications and websites in no time.
Along with a conceptual understanding of the framework, you’ll also gain direct experience with AngularJS by building a sample application throughout the book. If you’re familiar with JavaScript, web development, and software design concepts and patterns, this book is the perfect way to get started.
- Understand how AngularJS differs from other MVC frameworks
- Learn about AngularJS controllers, views, and models by diving into the book’s sample project
- Connect your working application to public REST services
- Build the application’s security layer with non-REST AngularJS services
- Explore the basics of building and testing AngularJS directives
- Use AngularJS as part of the MEAN stack (MongoDB, ExpressJS, AngularJS, and Node.js)
- Discover how search engine optimization relates to AngularJS applications and sites
Publisher resources
Table of contents
- Preface
-
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
- 3. MVC and AngularJS
- 4. AngularJS Controllers
-
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
- End-to-End Testing
- Conclusion
- 6. AngularJS and REST Services
- 7. AngularJS Models
-
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
- 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
- End-to-End 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
- Testing with Karma
- End-to-End 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
- End-to-End Testing
- MEAN Deployment to the Cloud
- Testing the Cloud Blog
- Mobile Version
- Conclusion
- 12. AngularJS and SEO
- References
- Index
Product information
- Title: Learning AngularJS
- Author(s):
- Release date: March 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491916704
You might also like
book
Learning AngularJS
Get Started Fast with AngularJS Web Development AngularJS is one of the most exciting and innovative …
video
Learning AngularJS
Overview Learning AngularJS LiveLessonsprovides developers with a practical introduction to AngularJS, an exciting JavaScript framework for …
book
AngularJS in Action
AngularJS in Action covers everything you need to know to get started with the AngularJS framework. …
book
AngularJS: Up and Running
If you want to get started with AngularJS, either as a side project, an additional tool, …