JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 36
  • Score
    100M100P100Q51411F
  • License Apache-2.0

Bind virtual-dom elements inside BaconJS observables to real dom elements

Package Exports

  • bacon-dom

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bacon-dom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status

Usage

Create a stream of virtual-dom HTML trees, attach them to a real node.

var Bacon = require("baconjs");
var h = require("virtual-dom/h")
var attach = require("bacon-dom");
 
var ticks = Bacon.interval(1000, 1);
var count = ticks.scan(0, function(sum, newValue) { sum + 1 } );
var html = count.changes().map( function(n) { h('.count', [String(n)]) } );
 
attach(html).to(document.body);

Typescript

Get a definitely typed compatible definition file from src/definitelyTyped.

Dev

  • Build with npm run build
  • Test once with npm test
  • Run tests with watch using ./node_modules/.bin/karma start