0.0.25 • Published 4 years ago

@ng-ecom-kit/ng-shopify-cart v0.0.25

Weekly downloads
43
License
MIT
Repository
-
Last release
4 years ago

NgShopifyCart

Shopify Cart.

Install

  1. ng add @ng-ecom-kit/ng-shopify-cart
  2. Add NgShopifyCartModule.forRoot({refreshCartAction: yourActionToRefreshCart, selectUserAccessToken: your-selector}) to your app.modules.
  • refreshCartAction: Actual to update the cart on. This could be an init action, page router, or something on a timer. You should minimally run this at least on page load.
  • selectUserAccessToken: (optional) A function that accepts the state and returns your shopify user access token for the storefront API. If you do not need to associate a shopify Checkout with a user, you may leave this blank.

Adding the shopify storefront api header is not supported by this package at this time (you can use a angular interceptor for this)

Code scaffolding

Run ng generate component component-name --project ng-shopify-cart to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ng-shopify-cart.

Note: Don't forget to add --project ng-shopify-cart or else it will be added to the default project in your angular.json file.

Build

Run ng build ng-shopify-cart to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build ng-shopify-cart, go to the dist folder cd dist/ng-shopify-cart and run npm publish.

Running unit tests

Run ng test ng-shopify-cart to execute the unit tests via Karma.

Further help

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

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago