Book Image

DART Essentials

Book Image

DART Essentials

Overview of this book

Table of Contents (16 chapters)
Dart Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing AngularDart


Just like polymer.dart, the simplest way to install AngularDart is by adding it to your pubspec.yaml file:

name: todo_list
version: 0.0.1
description: My first AngularDart app
dependencies:
  angular: 1.1.0
  browser: any
  web_components: any
transformers:
- angular

Note that we had to add angular to the transformers directive as well. This tells the pub tool that there are some extra tasks defined in AngularDart libraries. Even if you're used to adding dependencies in Dart Editor's GUI, you still have to add the transformer yourself.

Note

AngularDart reached version 1.1.0 and is still in development. All examples in this chapter are using this version.