Hi, i'm a newbie for angular2. My ide is netbeans, i can compile, debug, 
it's all ok.
But, now i test the module inclusions with "export", in my project i create 
the folder "testModules" and the files index.ts, module.ts 
In testModules/module.ts:
export class foo{
getHelloWorldFromModule():string{
return "Hello World from module"
}
}

in testModules/index.ts:
import {foo} from "module";
var f:foo = new foo();
console.log(f.getHelloWorldFromModule());

To test with chrome debugger, i use file index.html with:
<script src="testModules/index.js"></script>

But compiler give me:
Uncaught ReferenceError: define is not defined (15:44:21:108 | error, 
javascript) at public/testModules/index.js:1

my tsconfig.json:
{
"compileOnSave": true,
"compilerOptions": {
"target": "ES5",
"module": "amd",
"sourceMap": true,
"watch":true
}
}


i test "module": "umd" too, but i have the same error.
Can you help me?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to