Book Image

Learning Dart, Second Edition - Second Edition

By : Ivo Balbaert
Book Image

Learning Dart, Second Edition - Second Edition

By: Ivo Balbaert

Overview of this book

Table of Contents (18 chapters)
Learning Dart Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Applying web components to the project tasks app


Note

Get the code with the following command:

git clone git://github.com/dzenanr/polymer_project_tasks.git

The model that forms the basis for this app is a typical many-to-many relationship between the two entry concepts: project and employee. A project has many employees, and an employee works on many projects. The many-to-many relationship between project and employee is normalized into two one-to-many relationships by introducing the intermediary task concept; a project consists of many tasks and an employee has many tasks: project (1-n) task and employee (1-n) task.

A project has a name (its ID), a description, and a tasks collection. An employee has an email (its ID), a lastName, and a firstName (both required) attributes, and a tasks collection. A task has a project, an employee, and a description: its ID is composed of the IDs of the project and employee, so an employee can only have, at the most, one task in a project. The code for this...