Answer the question
In order to leave comments, you need to log in
How to properly name folders/files in Angularjs?
Hello!
Tell me, please, how to correctly name folders and files, if we are talking about:
1. Directive
angular.module('directives.selectBox', [])
.directive('selectBox', function () {})
angular.module('services.carService', [])
.service('carService', function () {})
angular.module('postDetails', [])
Answer the question
In order to leave comments, you need to log in
1. Directive
Named so and so. The recommendation is select-box.js but also name selectBox.js or selectBoxDrv.js if this file is not in the directives folder.
For services and modules, there is definitely a caml case.
I advise you to look at the lesson of Joe Eames, Who to organize your code.
beta.pluralsight.com/courses/angular-best-practices
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question