I\'m trying to use export and import but it not working I get an error
Here is my code HTML :
<
Similar to TypedSource's answer, but if you can't or don't want to output into one js file you can do the following:
@RenderBody()
User.ts :
class User {
firstName: string;
lastName: string;
}
main.ts
///
// import { User } from "./user"; // not needed if referenced & User.js file is loaded
console.log(new User());