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

D.R.Y_out_your_Angular_Apps.pdf

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.
Avatar for J-Graham J-Graham
October 19, 2019

 D.R.Y_out_your_Angular_Apps.pdf

Angular provides us with ways to make reusable code within our applications. What happens when we want to make use of this code in another application? In this session we will cover how to take an existing piece of reusable logic and abstract it to a shared Angular package.

We’ll start with our story of how we leveraged shared packages across multiple client systems at our current company. Then we will demonstrate, with a real example, how you can package and distribute your Angular code.

A full example will be provided at the end of the course that contains everything we discussed in the session, and uses an automated pipeline to test and build your code.

Avatar for J-Graham

J-Graham

October 19, 2019
Tweet

Other Decks in Technology

Transcript

  1. HELLO! We are John Graham and Chris Camac. You can

    find us at @JohnGrahamDev and @PilgrimSecret 2 ▪ Presentation template by SlidesCarnival ▪ Photographs by Unsplash
  2. “Angular provides us with ways to make reusable code within

    our applications. What happens when we want to make use of this code in another application? 3
  3. Why are we doing this? ▪ You’ve built functionality that

    you want to share with other Angular applications. ▪ You want to have consistency among common functional components. ▪ Updates to common components can be managed with semantic versions. 4
  4. What are the benefits of a package? ▪ Prevents the

    need for a Mono-Repo. ▪ Easy to create with tools like ng-packagr ▪ Angular Package Format 5
  5. ngx-package-starter ng-packagr Pre-configured with the initial setup required for ng-packagr

    to bundle your package Unit Test Built in unit testing structure with code coverage. CI Azure pipelines ready with built in yml that handles coverage reporting and testing. 7 https://github.com/milestechnologies/ngx-package-starter https://github.com/milestechnologies/ngx-keyboard-shortcuts
  6. What is solves ▪ A lot of our enterprise apps

    are CRUD ▪ Saves time configuring forms ▪ Keeps data definitions and UI in sync ▪ Data drives forms ▪ Automates the mundane Dynamic Forms What it Does ▪ Read DB schema to create an entity configuration ▪ Render dynamic form components from the configuration ▪ Centralize your validation and form logic 9
  7. References ▪ Ngx - Package starter ▪ Developer Learning Tracker

    ▪ Strike It ▪ Angular Dynamic Forms 11