Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ngNeering – Rise of a Component Library

ngNeering – Rise of a Component Library

A lot of larger companies that develop software by themselves have a need to implement company-wide reusable control libraries: Written once and used throughout an entire app landscape. In this session we take a brief look at how to engineer Angular component libraries.

David Würfel

October 17, 2018
Tweet

More Decks by David Würfel

Other Decks in Programming

Transcript

  1. “A presentational component, sometimes called dumb component, is responsible for

    presenting its data, it only depends on @Inputs and only communicates to the outer world via @Output events. It has no direct access to domain services.”
  2. “A container component, sometimes called smart component, has knowledge of

    the business domain, has access to services, uses them to handle data and processes information for presentational components to consume.”
  3. > ng generate lib momo-ui --style scss > ng generate

    component components/expander --project momo-ui > ng build momo-ui > ng serve momo
  4. “Changing the appearance of graphical elements to customize the look

    and feel of an application at runtime. Theming can be triggered by the user.”
  5. “Angular elements are Angular components packaged as custom elements, a

    web standard for defining new HTML elements in a framework- agnostic way.”