Book Image

CoffeeScript Application Development Cookbook

By : Mike Hatfield
Book Image

CoffeeScript Application Development Cookbook

By: Mike Hatfield

Overview of this book

Table of Contents (18 chapters)
CoffeeScript Application Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with AngularJS


AngularJS is a fully featured client-side MVC framework from Google. Its popularity has exploded in recent months.

Tip

For more information on AngularJS, you can visit the project home page at http://angularjs.org/.

In this section, we will demonstrate how CoffeeScript can be used to create the various building blocks of an Angular application including the following:

  • Creating an Angular application module

  • Creating Angular controllers

  • Creating Angular providers

  • Creating Angular directives

  • Creating Angular routers

  • Handling inter-controller events

Creating an Angular application module

In Angular, the application module contains all of our applications controllers, services, directives, and routing. This allows us to limit the scope of our application to a specific application instance and consequently allows us to have multiple applications within the same page.

Getting ready

Angular is an extensive framework and contains almost everything you would ever need to create your applications...