Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @webacad/ng-store with all npm packages installed. Try it out:

require("@angular/core/package.json"); // @angular/core is a peer dependency. require("store/package.json"); // store is a peer dependency. var ngStore = require("@webacad/ng-store")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@webacad/ng-store v0.1.0

Store wrapper for angular

NPM version Build Status


Store wrapper for angular.


  • @angular/core
  • store


$ npm install --save @webacad/ng-store

or with yarn

$ yarn add @webacad/ng-store

Register the module

import {NgModule} from '@angular/core';
import {NgStoreModule} from '@webacad/ng-store';

    imports: [
export class AppModule {}


Simply inject the NgStore service into your class:

import {NgStore} from '@webacad/ng-store';

export class AuthService
        private $store: NgStore,
    ) {}

Available methods:

  • get(key, default): Returns the value from store
  • set(key, value): Store a new value
  • remove(key): Remove value from the store


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free