quantmind/d3-view

Allow to specify mounted callback on DOM

Closed this issue · 1 comments

An idea is to specify the mounted callback for a component directly in the dom.

<my-domponent mounted="$callback"></my-component>

and in javascript

vm = d3.view({
    model: {
        $callback: function (cm) {...}
    }
});

In this way one could organise the view model as the application object.

not sure why we need this anymore. Too much binding between components.