10 lines
150 B

<p ref:x>{inDocument}</p>
<script>
export default {
8 years ago
oncreate () {
this.set({ inDocument: document.contains( this.refs.x ) })
}
};
</script>