Riot.js Bug Report Template

by gianlucaguarini

HTML

<script src="https://cdn.jsdelivr.net/g/[email protected](riot.min.js+compiler.min.js)"></script>
<my-tag></my-tag>

<script type="riot/tag">
    <my-tag>
        <p>{ message }</p>
        <child msg={ message }></child>
        this.message = 'HELLO WORLD!'
    </my-tag>
    <child>
        
        <p> 
            { opts.msg }
        </p>
        
        var self = this
        
        setTimeout(function(){
            opts.msg = 'noop'
            // here the parent.message property should be updated as well
            // since child.msg is a reference to it 
            self.parent.update()
        }, 500) 
 
      
        
    </child>
</script>

CSS

body {
    font-family: sans-serif;
}

JavaScript

/**
 * Riot.js is loaded from External Resources
 * https://cdn.jsdelivr.net/g/[email protected](riot.min.js+compiler.min.js)
 */
riot.mount('*')