0.4.0 • Published 7 years ago

@proactive/ui v0.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Proactive UI

Define a component hello-component.ts

import { Observable, interval } from "rxjs";

class HelloComponent {
    exclamations: Observable<string>;
    constructor(props) {
        this.exclamations = interval(500).pipe(map(x => Array(x + 1).join("!")));
    }
}

export const template = `<span>Hello, world{{exclamations}}</span>`
export const viewmodel = MyComponent

Start it up startup.ts

import { ProactiveUI } from "@proactive/ui";
import * as hello from "./hello-component";

const ui = new ProactiveUI();
ui.render(hello, document.body);
0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.0

8 years ago