Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Working with ServiceStack and AngularJS resources


AngularJS is a JavaScript-based frontend MVC web framework that makes quite a number of things easier when building complex web applications. Large JavaScript applications can get harder and harder to maintain as they grow, AngularJS is structured in such a way that it helps keep the applications, complexity isolated in separate modules. AngularJS itself is separated into several modules to make the framework easier to manage if you don't need all of its functionality. One of these modules is called NgResource. This module can help when you are dealing with server-side domain objects (resources) that can be viewed, created, updated, and deleted, but it does come with its own assumptions and conventions. In this recipe, we will look at a simple example of how you utilize, extend, and consume the AngularJS resource module to make it easier to handle server-side updates.

Getting ready

AngularJS is quite a large framework that has a number of interrelated...