javascript - splitting angular controllers into their own variables -
https://docs.angularjs.org/tutorial/step_07
when routing , multiple views section bring in router split out controllers new var:
var phonecatapp = angular.module('phonecatapp', [   'ngroute',   'phonecatcontrollers' ]);   to improve organization of app, making use of angular's ngroute module , we've moved controllers own module phonecatcontrollers
i half way through building first angular app have decided organization purposes , speed of dev house controllers , services etc in 1 var, , include 3rd party modules in dependencies bit:
var myfirstangapp = angular.module('myfirstangapp', [     'wu.masonry',     'slick',     'ngroute',     'ngresource' ]);   is there reason split out controllers , services etc own variables per above mentioned tutorial, speed purposes maybe?
 
 
Comments
Post a Comment