//demo.js function test(){ alert(); }
module Data.test { export class Controller { constructor(){ // i need to call the javascript function here. // i just called test() here like this , it is working but when compiling // in visual studio it shows "Cannot find Name test" test(); } TestAlert():void{ // here also i need to call the javascript function // i just called test() here like this , it is working but when compiling // in visual studio it shows "Cannot find Name test" test(); } } }
declare var test:any
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)