Is it a good idea to create more than one ng application in an AngularJS application?

I plan to develop CRM (Customer Relationship Management) CRM in AngularJS. This system is small, there are such modules as CRUD client, shopping cart, after-sales service, etc.

As I noticed, usually AngularJS has only one main "ng application".

  • Is there any problem for building more than for the "ng-app" for the system (one for each CRM module)?

  • What would be its pros and cons?

Edit 1: I do not plan to use more than one ng application for each HTML code, but many (about 7) for the entire application.

Edit 2: the idea is to create one Angular module for each CRM module, for example:

customer.html
<html lang="en" ng-app="crmCustomer">
angular.module('crmCustomer', ['customers']);

sales.html
<html lang="en" ng-app="crmSales">
angular.module('crmSales', ['customers','cart','sales']);

afterSales.html
angular.module('crmAfterSales', ['customers', 'remittance']);
<html lang="en" ng-app="crmAfterSales">

+4
1

, ( , Amruth Rao) , - .

"root" , , :

angular.module('crm', ['customers', 'cart', 'sales']);

, , , .

+3

All Articles