Saturday, 31 August 2013

Is there any standard for naming controllers and partial files with AngularJS?

Is there any standard for naming controllers and partial files with
AngularJS?

I have been using the following:
file /content/app/admin/controllers/content-controller.js
angular.module('admin').controller('AdminContentController',
file /content/app/home/partials/overviewItem.html
I copied the idea of a hyphen in the name of the controller but now I am
not sure if it is needed. I'd like some suggestions maybe it's better to
just call the file content.js?

No comments:

Post a Comment