riot/observable

Name: observable

Owner: Riot

Description: Simple script to send and receive events

Created: 2015-06-07 10:40:17.0

Updated: 2018-05-24 01:51:52.0

Pushed: 2016-11-19 14:34:33.0

Homepage:

Size: 91

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status Code Quality NPM version NPM downloads MIT License Coverage Status

Observable

Observable is a generic tool to send and receive events. It's a common pattern to isolate modules without forming a dependency or “coupling”. By using events a large program can be broken into smaller and simpler units. Modules can be added, removed, or modified without affecting the other parts of the application.

A common practice is to split the application into a single core and multiple extensions. The core sends events any time something remarkable happens: a new item is being added, an existing item is being removed, or something is loaded from the server.

By using the observable the extensions can listen to these events and react to them. They extend the core so that the core is not aware of these modules. This is called “loose coupling”.

These extensions can be custom tags (UI components) or non-UI modules.

Once the core and events are carefully designed the team members are enabled to develop the system on their own without disturbing others.

Documentation
Installation
Npm

$ npm install riot-observable --save

Bower

$ bower install riot-observable --save


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.