vecty: github.com/gopherjs/vecty/example/todomvc/store Index | Files | Directories

package store

import "github.com/gopherjs/vecty/example/todomvc/store"

Index

Package Files

store.go

Variables

var (
    // Items represents all of the TODO items in the store.
    Items []*model.Item

    // Filter represents the active viewing filter for items.
    Filter = model.All

    // Listeners is the listeners that will be invoked when the store changes.
    Listeners = storeutil.NewListenerRegistry()
)

func ActiveItemCount Uses

func ActiveItemCount() int

ActiveItemCount returns the current number of items that are not completed.

func CompletedItemCount Uses

func CompletedItemCount() int

CompletedItemCount returns the current number of items that are completed.

Directories

PathSynopsis
model
storeutilPackage storeutil contains a ListenerRegistry type.

Package store imports 4 packages (graph) and is imported by 2 packages. Updated 2017-10-18. Refresh now. Tools for package owners.