this.on('before-mount',function(){// before the tag is mounted})this.on('mount',function(){// right after the tag is mounted on the page})this.on('update',function(){// allows recalculation of context data before the update})this.on('updated',function(){// right after the tag template is updated})this.on('before-unmount',function(){// before the tag is removed})this.on('unmount',function(){// when the tag is removed from the page})// curious about all events ?this.on('all',function(eventName){console.info(eventName)})
Router
riot.route('customers/*/edit',(id)=>{})riot.route('customers/234/edit')riot.route.start()riot.route.start(true)// exec the current url
Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.
Top comments (0)