Search code examples
javascriptjqueryfunctionractivejs

Calling Function with Ractive.js


I want to call start in JavaScript file. How can I do?

ractive.on('start', function(){
      ...
});

Solution

  • call fire method.

    ractive.fire('start');