Closed paldepind closed 7 years ago
Merging #65 into master will decrease coverage by
0.9%
. The diff coverage is100%
.
Impacted Files | Coverage Δ | |
---|---|---|
src/dom-builder.ts | 98.38% <100%> (+0.01%) |
:arrow_up: |
src/utils.ts | 69.56% <100%> (-12.66%) |
:arrow_down: |
src/component.ts | 95.79% <100%> (+0.67%) |
:arrow_up: |
This is great!!
This PR adds a
output
method and anoutput
function.The mehods works similairly to the
output
property in the HTML element components. They take a component whose output is an object and returns a new component which only outputs the named properties under their new name.Output created with
output
is considered explicit. When the output from an array of components is merged only explicit output is includeded.Theses changes have a few important benefits:
Here is an example where a custom component
counter
is included three times. The custom component has the output{ count: Stream<number> }
.Output created by specifying the
output
property to HTML components is marked explicit.