/ngmat-sorted-table

Angular Material component for rendering tabular data and allow the user to sort the data per column

Primary LanguageTypeScriptMIT LicenseMIT

NGMAT Sorted Table

A angular material component to render tabular data, for infomrmaiton about the content of the NPM package see component readme.

This project was generated with Angular CLI version 7.0.3.

Project Structure

The repository consists of two distinct projects:

  1. ngmat-sorted-table-demo: A demo and test application instantiating a SortedTable component. The app lives in src/app.
  2. ngmat-sorted-table: A library implementing the actual npm package. The library lives in projects/ngmat-sorted-table-

Development server

Run npm run start for a dev server running the test and demo app. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build library

Run npm run build-library whenever a change has been made to the code in the library. During development this has to be done for the test and demo app to pick upp any changes.

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.

Packaging

Run npm run package to build the library and create a npm package ready for publishing.

Running unit tests

Run npm run test to execute the demo app unit tests via Karma.

Run npm run test-library to execute the library unit tests via Karma.

Running end-to-end tests

Run npm run e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.