These are chat archives for systemjs/systemjs

1st
Nov 2017
Debasish padhy
@aino-gautam
Nov 01 2017 13:45
hi guys.. need some help. Its a plain typescript project and I am using Systemjs module.
how do I access my Typescript classes from html ?
I am trying to create an object and invoke a method when user clicks on a button
so in the html onClick I want to invoke a handler function written in TS
anyone ?
Debasish padhy
@aino-gautam
Nov 01 2017 13:59
@davismj for ?
Matthew James Davis
@davismj
Nov 01 2017 14:21
@aino-gautam the thing you just asked
hi guys.. need some help. Its a plain typescript project and I am using Systemjs module.
how do I access my Typescript classes from html ?
I am trying to create an object and invoke a method when user clicks on a button
so in the html onClick I want to invoke a handler function written in TS
Aluan Haddad
@aluanhaddad
Nov 01 2017 14:32
@davismj thanks!
Aluan Haddad
@aluanhaddad
Nov 01 2017 14:38
@aino-gautam it's not a TypeScript related thing, it's true of all JavaScript, that in general you don't access your code from the DOM you access the DOM from your code. Of course there are event handlers in your HTML that can reference Global JavaScript functions but