0.0.25 • Published 2 years ago

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

Weekly downloads
43
License
MIT
Repository
-
Last release
2 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

2 years ago

0.0.24

3 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago