我对typescript是个新手,我正在为我的asp net mvc项目使用它。我用它来渲染动态的东西,并很好地组织代码。我目前正在将一个模型绑定到一个视图,并使用jquery事件呈现数据。我只是想知道我应该将ts文件分成多个文件还是一个大文件?
下面是一个例子
//here is my class
class Student {
}
//here is the viewmodel bind to the razor view
class StudentViewModel {
}
//the stuff call to execute my actions
var sm = new Stu