BITFIBERAngular
NgStoreAbout
GitHubGitHub
  • NgStore Intro
  • Emitters
  • Signal States
  • Groups
  • Data Sources
  • Installation
  • Reference
    • NgStore
      • initialize
      • complete
      • markAsReady
      • unregisterOnDestroy
    • signalState
    • SignalState
      • $
      • initialize
      • complete
      • manage
      • get
      • set
      • update
      • reset
      • compareBy
      • connect
      • useLazyEmission
      • useLazyEmissionOnce
      • select
      • zip
      • wait
      • receive
      • transmit
      • effect
      • tap
    • asyncSignalGroup
    • AsyncSignalGroup
      • launch
      • success
      • fail
      • finish
      • state
      • initialize
      • complete
      • useCache
    • routeGroup
    • RouteGroup
      • params
      • queryParams
      • allParams
      • fragment
      • initialize
      • complete
      • changeUrl
      • resetUrl
      • hasParams
      • hasQueryParams
      • hasAnyParams
      • hasFragment
    • RouteGroupSettings
      • initialParams
      • initialQueryParams
      • excludedParams
      • segments
      • hasFragment
      • navigationExtras
    • routeFiltersGroup
    • RouteFiltersGroup
      • filters
      • route
      • form
      • initialize
      • complete
    • RouteFiltersGroupSettings
      • controlsFlow
      • controlOperators
      • onControlChange
      • withoutRoute
    • formSource
    • FormSource
      • $
      • get
      • set
      • remove
  • Stores Comparison

On This Page

  • API
  • Example
FeedbackEdit this page
NgStoreReferenceSignalStateget

get Method

Returns the current value of the state. This method is useful for accessing the state at any point in time, allowing other store items or consumers to retrieve the latest value

@returns T

API

get(): T;

Example

import {signalState} from '@bitfiber/ng/rx';
 
const data = signalState<number>(10);
 
// Returns the current value
const value1 = data.get(); // Output: 10
 
// Returns the current value
const value2 = data(); // Output: 10
manageset

Created by Oleksandr Zmanovskyi © 2023-2025.Code licensed under an Apache 2.0 License.Documentation licensed under CC BY 4.0.