/client/imports vs /imports in Socially demo app vs Meteor official app structure?

/client/imports vs /imports in Socially demo app vs Meteor official app structure?

第一天玩 angular2-meteor 并浏览 Socially 教程应用程序,我注意到它将 imports 目录放在 client 文件夹中,而官方 Meteor 指南建议使用顶级目录imports

社交演示应用指南:https://www.angular-meteor.com/tutorials/socially/angular2/adding-removing-objects-and-angular-event-handling

流星结构指导:http://guide.meteor.com/structure.html#example-app-structure

只是想看看放在 client 文件夹中的原因是与 Angular2 有关还是只是偏好?

其次,如果是这样,是否意味着 Meteor 会选择任何名为 imports 的目录,而不管它为此目的保存在哪里?

我相信这只是教程的偏好问题。无论位置如何,Meteor 都会对任何 /imports 文件夹一视同仁。您可以将其保存在 /client 文件夹中或创建根级别 /imports 文件夹。没关系。