Free Sample
+ Collection

Learning AngularJS for .NET Developers

Learning
Alex Pop

Build single-page web applications using frameworks that help you work efficiently and deliver great results.
$23.99
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783986606
Paperback202 pages

About This Book

  • Implement complex frontend applications using AngularJS and rock solid web services using ServiceStack
  • Become a more productive developer and learn to use frameworks that enforce good development practices
  • Follow a gradual introduction to concepts with lots of examples and explore the evolution of a production-ready application

Who This Book Is For

If you are a .NET developer that has already built web applications or web services with a fundamental knowledge of HTML, JavaScript, and CSS, and want to explore single-page applications, then this book will give you a great start. The frameworks, tools, and libraries mentioned here will make you productive and minimize the friction usually associated with building server-side web applications.

Table of Contents

Chapter 1: Introducing AngularJS
Presenting AngularJS with examples
The JavaScript patterns and practices used in AngularJS applications
Dependency injection
Introducing AngularJS services
Directives
Filters
Summary
Chapter 2: Creating an AngularJS Client-side Application in Visual Studio
Using Visual Studio with NuGet to manage AngularJS and related libraries
Prototyping client-side components
Organizing client-side code
Integrating AngularJS with JavaScript libraries
Routing
Creating a bicycle rental management application
Summary
Chapter 3: Creating .NET Web Services for AngularJS
RESTful web services
Choosing a RESTful web services framework
Why ServiceStack is a great fit for AngularJS
ServiceStack overview
Creating web service methods for the sample application
Calling RESTful web services in AngularJS using the ngResource module
Summary
Chapter 4: Creating an AngularJS, ASP.NET MVC, ServiceStack Application
Using ASP.NET MVC as the application backbone
Securing the AngularJS application
Pushing initial data from the server-side application to the AngularJS application
How to ensure that AngularJS works well with the backend
Adding database persistence
Summary
Chapter 5: Testing and Debugging AngularJS Applications
Overview of testing AngularJS applications
Unit testing AngularJS components
Testing an AngularJS application end to end
Testing web service endpoints
Unit testing .NET code
Techniques to debug AngularJS applications
Support for HTML5 validation and older browsers such as Internet Explorer 8 and 9
Summary
Chapter 6: Advanced AngularJS Topics
Internationalization and localization
Using AngularJS animations
Working with remote web services
Template caching
Summary

What You Will Learn

  • Create a standalone AngularJS application to prototype user interfaces
  • Validate complex forms with AngularJS and use Bootstrap to style them
  • Build RESTful web services that work well with single-page applications
  • Implement automatic validation for web service requests to reduce your boilerplate code
  • Use web services with AngularJS to offload and secure your application logic
  • Test your AngularJS and web service code to improve the quality of your software deliverables
  • Structure your JavaScript code and organize your files so your application can grow at a sustainable pace

In Detail

AngularJS is the most popular JavaScript MVC framework, and it embraces and extends HTML rather than abstracting it. The building of single-page applications is a web-designer-friendly process with the AngularJS expressive HTML vocabulary. It drastically reduces the amount of JavaScript required to control complex user interactions and enforces a modular approach to structuring your JavaScript code.

This book covers all of the stages of building a single-page web application, starting with frontend components powered by AngularJS, continuing with web services that leverage ServiceStack, and putting it all together in an ASP.NET MVC application. You will learn a development process focused on rapid delivery and testability for all application layers.

Authors

Read More