[Pas2js] HTML template element missing definiton

warleyalex warleyalex at yahoo.com.br
Sun Nov 4 15:32:06 CET 2018


It would be really cool if pas2js intercept any DOM events such directives
before render them.

If we want to do something when a click event happens in an element, we
could use
the v-on directive on an element, and pas2js will intercept this v-on
directive, tell pas2js 
handle things for you, instead of messing with DOM "things".

<template>
   Click me! 
</template>

procedure TForm.handleClick(Sender: TObject);
begin
  // Code
end;




--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list