@ngx-toolkit/spring

Angular spring utilities

Usage no npm install needed!

<script type="module">
  import ngxToolkitSpring from 'https://cdn.skypack.dev/@ngx-toolkit/spring';
</script>

README

npm version MIT License Build Status Coverage Join the chat at https://gitter.im/ngx-toolkit/Lobby

@ngx-toolkit/spring

Angular Spring utilities

Table of contents:


Installation

Install the npm package.

# To get the latest stable version and update package.json file:
npm install @ngx-toolkit/spring --save
# or
yarn add @ngx-toolkit/spring

Spring Data

Some Spring Data Commons classes:

  • Page<T> type
  • Sort(orders: string | string[] | Order[], direction: Direction = 'ASC')
  • PageRequest(page: number = 0, size: number = 20, sort?: Sort) with toHttpParams(options: { fromString?: string; fromObject?: { [param: string]: string | string[]; }; encoder?: HttpParameterCodec; } = {} as { fromString?: string; fromObject?: { [param: string]: string | string[]; }; encoder?: HttpParameterCodec; }) method to convert value in request params

License

© 2018 Dewizz

MIT