Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
AngularJS/MeteorJS文件夹结构_Angularjs_Meteor - Fatal编程技术网

AngularJS/MeteorJS文件夹结构

AngularJS/MeteorJS文件夹结构,angularjs,meteor,Angularjs,Meteor,因此,我开发了一个应用程序,最终使用了默认文件夹结构,如下所示: 应用程序名称为卡路里计数器 CalorieCounter.css CalorieCounter.html CalorieCounter.js index.ng.html 现在我的代码越来越长,我意识到我应该用更好的文件夹组织它。我想把它组织得更好,但我对如何准确开始有点迷茫 这是github:您实现了基于特性的层次结构 这是在角度应用程序开发时最常用的文件夹结构 app/ ----- controllers/ --------

因此,我开发了一个应用程序,最终使用了默认文件夹结构,如下所示:

应用程序名称为卡路里计数器

CalorieCounter.css
CalorieCounter.html
CalorieCounter.js
index.ng.html
现在我的代码越来越长,我意识到我应该用更好的文件夹组织它。我想把它组织得更好,但我对如何准确开始有点迷茫


这是github:

您实现了基于特性的层次结构


这是在角度应用程序开发时最常用的文件夹结构

app/
----- controllers/
---------- mainController.js
---------- otherController.js
----- directives/
---------- mainDirective.js
---------- otherDirective.js
----- services/
---------- userService.js
---------- itemService.js
----- js/
---------- bootstrap.js
---------- jquery.js
----- app.js
views/
----- mainView.html
----- otherView.html
----- index.html

这只对小应用程序或入门有用。不适用于可扩展应用程序。强烈建议不要使用它,如果你想扩大更多。
app/
----- controllers/
---------- mainController.js
---------- otherController.js
----- directives/
---------- mainDirective.js
---------- otherDirective.js
----- services/
---------- userService.js
---------- itemService.js
----- js/
---------- bootstrap.js
---------- jquery.js
----- app.js
views/
----- mainView.html
----- otherView.html
----- index.html