Book Image

Mastering Angular Components - Second Edition

By : Kunz
Book Image

Mastering Angular Components - Second Edition

By: Kunz

Overview of this book

Mastering Angular Components will help you learn how to invent, build, and manage shared and reusable components for your web projects. Angular components are an integral part of any Angular app and are responsible for performing specific tasks in controlling the user interface. Complete with detailed explanations of essential concepts and practical examples, the book begins by helping you build basic layout components, along with developing a fully functional task-management application using Angular. You’ll then learn how to create layout components and build clean data and state architecture for your application. The book will even help you understand component-based routing and create components that render Scalable Vector Graphics (SVG). Toward the concluding chapters, you’ll be able to visualize data using the third-party library Chartist and create a plugin architecture using Angular components. By the end of this book, you will have mastered the component-based architecture in Angular and have the skills you need to build modern and clean user interfaces.
Table of Contents (12 chapters)

Managing efforts

In this section, we will create some components that help us keep track of work efforts. Primarily, we will use this to manage efforts on tasks, but this could be applied to any part of our application where we need to keep track of time.

Efforts in our context always consist of two things:

  • Estimated duration: This is the duration that is initially estimated for the task
  • Effective duration: This is the duration of time that is spent on a given task

For time durations, we assume some time units and rules that will simplify the processing of time and align to some working standards. The goal here is not to provide razor sharp time management but something that is accurate enough to bring value. For this purpose, we define the following working time units:

  • Minute: One minute is a regular 60 seconds
  • Hour: One hour always represents 60 minutes
  • Day: One day represents...