Skip to Main Content
Mastering Angular Components - Second Edition
book

Mastering Angular Components - Second Edition

by Gion Kunz
July 2018
Intermediate to advanced content levelIntermediate to advanced
402 pages
9h 35m
English
Packt Publishing
Content preview from Mastering Angular Components - Second Edition

Components to manage efforts

Okay, this is enough time-math for the moment. Let's now use the elements that we've created to shape some components that will help us gather user input.

In this section, we will create two components to manage efforts:

  • Duration component: The duration component is a simple UI component, enabling user input of time durations using the formatted time strings we dealt with in the previous topics. It uses an editor component to enable user input and makes use of the time formatting pipe as well as the parseDuration utility function.
  • Efforts component: The efforts component is just a composition of two duration components that represent the estimated effort and the effective effort spent on a given task. Following ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Angular, 2nd Edition

Learning Angular, 2nd Edition

Brad Dayley, Brendan Dayley, Caleb Dayley
Essential Angular

Essential Angular

Victor Savkin, Jeff Cross
Pro Angular 6

Pro Angular 6

Adam Freeman

Publisher Resources

ISBN: 9781788293532Supplemental Content