An Angular component library to create shopping carts. Based on it's predecessor for Angular.js with tons of improvements.
- Generic and abstract services to manipulate cart items however you want
- Several components to add items, checkout or view a summary of the cart
- A component to display items arranged in a grid for your e-commerce application
- Easily replace the item component used to display items on the grid
- Any object data structure for cart items
- Simple module configuration
- Different currency formats for the whole app or a single component
- Internationalization support
- Easy styling of one or all components of the same type
- Support for CSS Preprocessors to customize styles with variables
This library is compatible with Angular version >=5
Using npm
npm install ng-shopping-cart --save
or yarn
yarn add ng-shopping-cart
Documentation is available at http://devconcept.github.io/ng-shopping-cart/
Dgeni is used to automatically generate documentation from the source code.
If you spot an error please consider reporting it.
You can find a demo of the library in the url http://devconcept.github.io/ng-shopping-cart/demo/.
The demo is also available if you:
- Clone the repository
- Install it's dependencies with
npm install
- Run
npm start
orng run demo
-
Less and stylus support
-
Aria enabled components
-
Support for object keys in cart items
-
Built-in service for storing cart items in a remote server
-
Stripe checkout support
-
Enhanced PayPal support
-
Flexbox and CSS grid support
-
Reactive components?
Ideas and suggestions are always welcome. You can also contribute. Check the contribution guidelines.