ngx-mat-third-party-licenses-list-view
v0.0.9
Published
An Angular Material component library that provides a list view of third-party licenses.
Downloads
227
Readme
ngx-mat-third-party-licenses-list-view
- This library adds a script to postinstall and postuninstall in package.json that generates
third-party-licenses.json
- This library provides a ListView of third-party licences based on
third-party-licenses.json
- This library adds
public/third-party-licenses.json
to.gitignore
Installation
ng add ngx-mat-third-party-licenses-list-view
Example
licenses.component.ts
...
import { NgxMatThirdPartyLicensesListViewComponent, License } from 'ngx-mat-third-party-licenses-list-view';
import _licenses from '../../public/third-party-licenses.json';
@Component({
...
imports: [..., NgxMatThirdPartyLicensesListViewComponent],
templateUrl: './licenses.component.html',
styleUrl: "./licenses.component.css",
})
export class LicensesComponent {
licenses = _licenses as License[];
}
licenses.component.html
...
<main>
<ngx-mat-third-party-licenses-list-view [licenses]="licenses" />
</main>
...
licenses.component.css
main {
width: calc(100% - 22px);
max-width: 600px;
margin: 0 auto;
}