Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 644 Bytes

MonkeeChain.md

File metadata and controls

33 lines (26 loc) · 644 Bytes

Monkee Chain

basic setup

<div id="app"></div>;

<script>
var id = document.getElementById("app");
var app = new MonkeeChain(id, {
  template: "<h1>Hello, foo!</h1>",
});
<script>
var app1 = new MonkeeChain(document.getElementById("foo"), {});
var app2 = new MonkeeChain("#bar", {});
var app4 = new MonkeeChain(".monkee", {});
var app6 = new MonkeeChain("doesnotexist", {});
var app6 = new MonkeeChain("#doesnotexist", {});
var app5 = new MonkeeChain(".doesnotexist", {});

nothing happens

perhaps forgot to call render again?

var app = new MonkeeChain("#monkee", {...});
// re-render app
app.render();