Answer the question
In order to leave comments, you need to log in
Do you stick to angular-styleguide or something else?
I saw the styleguide and was a little disappointed. That's not possible -
/* избегайте этого */
angular
.module('app', ['ngRoute'])
.controller('SomeController', SomeController)
.factory('someFactory', someFactory);
/* рекомендовано */
// app.module.js
angular
.module('app', ['ngRoute']);
Answer the question
In order to leave comments, you need to log in
There is no point in looking at this style guide if you use ES6, only in parts where specifically about how to build an architecture.
I have everything written like this:
export default angular.module('someStuff', [
require('myDependency')
])
.service('MyService', require('./service.js'))
.name;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question