AngularJS Store
v3.0.0
v3.0.0
  • Introduction
  • Installation
  • Tutorials
    • Setup a store
    • Get the current state
    • Update the state
    • Get notified on state changes
    • Stop from receiving notifications
  • API Reference
    • NgStore
    • copy
    • dispatch
    • hook
Powered by GitBook
On this page
  1. API Reference

NgStore

PreviousAPI ReferenceNextcopy

Last updated 6 years ago

Was this helpful?

CtrlK

Was this helpful?

A class for creating stores.

@parameters

Name

Type

Description

initialState

object

Initial state of store.

@return

Type

Description

NgStore

New NgStore instance.

Examples:

const loaderStore = new NgStore({
    visible: false,
    label: 'Loading...'
});