Skip to content

Latest commit

 

History

History
100 lines (58 loc) · 4.92 KB

README.md

File metadata and controls

100 lines (58 loc) · 4.92 KB

AngularUtil

Why was this project created?

The main goal is to include several general purpose functionality, mainly related to functional programming, in a common Angular project.

Elements included in this project

Below is shown a brief introduction to the functionality included in this one:

New types

New types providing generic functionality like:

  • Comparator comparison function, which imposes a total ordering on some collection of objects.
  • Consumer represents an operation that accepts zero or more input arguments and returns no result.
  • Generic subject wrapper of RxJS Subject adding several customizations.

Others related with functional programming:

  • Either represents a value of one of two possible types (a disjoint union).
  • Function represents an operation that accepts zero or more input arguments and returns a result.
  • Predicate represents an operation that accepts zero or more input arguments and returns a boolean result based on provided data.
  • Optional a container object which may or may not contain a non-null value.
  • Try computation representation that may either result in an error, or return a successfully computed value.
  • Validation used to validate the given instance, defining 2 different status to manage the result: Valid and Invalid.

Util classes

Angular components

Some new components have been added to the project

  • Confirmation Alert: dialog to display tittle and message in a modal, sending events when the user clicks on provided buttons.
  • Disable Double Click: directive to disable temporarily the double click events in required DOM elements.

How to use the project

This project was generated with Angular CLI version 15.2.7.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.