The main goal is to include several general purpose functionality, mainly related to functional programming, in a common Angular project.
Below is shown a brief introduction to the functionality included in this one:
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
andInvalid
.
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.
This project was generated with Angular CLI version 15.2.7.
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.
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
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
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.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.