This library helps to connect instances of Angular Material MatSort and MatPaginator to ngx-data-source.
This project was generated with Angular CLI version 12.2.7.
- clone the repository via
git clone git@github.com:OttVilson/ngx-data-source-material-plugins.git
- navigate to
cd ngx-data-source-material-plugins
- run
npm install
- run
npm link ngx-data-source
(this step assumes a local build of ngx-data-source has been exposed via npm link) - run
ng build
- navigate to
cd ./dist/ngx-data-source-material-plugins
- run
npm link
- navigate to the project where you intend to use the library
- run
npm link ngx-data-source-material-plugins
(as well asnpm link ngx-data-source
) - note that since you are dealing with symlinks you are probably going to have a clash for MatSort and MatPaginator; this can be avoided by adding
"baseUrl": "./",
"paths": {
"*": ["node_modules/*", "*"]
},
to compilerOptions
in tsconfig.json file of the project where the library is to be used. See also Scenario 1 in microsoft/TypeScript#8346.