Tuesday, 15 May 2012

How to Call a javascript method from TypeScript class? -


I'm trying to call the JavaScript method from a typecript class. I tried, but he did not work for me. I'm getting the error

Uncategorized Referrer: Hello is not defined

Here's my code:

  // Resources.js (greetings) ceremony () {return "hello";} //Modifiers.ts function (greetings): string; Var hi = greet ();   

Appreciate any help!

You need to make sure that your Resources.js file < Code> Modifiers.js is loaded before the run. This runtime error is usually by not adding dependent scripts to web pages.

You should be both of them ...

     

No comments:

Post a Comment