Skip to main content
fixed formatting and grammar
Source Link
Quill
  • 11.9k
  • 5
  • 40
  • 93

I think this is just a primaryprimarily opinion based, but in AngularJsthe AngularJS docs we can read, there is the followfollowing:

Use this directive to auto-bootstrap an AngularJS application. The ngApp directive designates the root element of the application and is typically placed near the root element of the page - e.g. on the <body> or <html> tags

Use this directive to auto-bootstrap an AngularJS application. The ngApp directive designates the root element of the application and is typically placed near the root element of the page - e.g. on the <body> or <html> tags.

Also, note that is not possible to have nested ng-app, so IMHO, merging the group the related controllers merged into one unique module is a good thing.

I think is just a primary opinion based but in AngularJs docs we can read the follow:

Use this directive to auto-bootstrap an AngularJS application. The ngApp directive designates the root element of the application and is typically placed near the root element of the page - e.g. on the <body> or <html> tags

Also note that is not possible to have nested ng-app so IMHO group the related controllers merged into one unique module is a good thing.

I think this is primarily opinion based, but in the AngularJS docs, there is the following:

Use this directive to auto-bootstrap an AngularJS application. The ngApp directive designates the root element of the application and is typically placed near the root element of the page - e.g. on the <body> or <html> tags.

Also, note that is not possible to have nested ng-app, so, merging the group related controllers into one unique module is a good thing.

Source Link

I think is just a primary opinion based but in AngularJs docs we can read the follow:

Use this directive to auto-bootstrap an AngularJS application. The ngApp directive designates the root element of the application and is typically placed near the root element of the page - e.g. on the <body> or <html> tags

Also note that is not possible to have nested ng-app so IMHO group the related controllers merged into one unique module is a good thing.