Before deploying your ng-admin backend to production, there are a few tricks to know:
-
Disable debug in production by passing
falseas second parameter to the Application constructor. Beware that JS error messages will become very cryptic (if even logged) with that mode.var admin = nga.application('My Admin Backend', false); -
Enable
ng-strict-diangular mode in theng-appelement<body ng-app="myApp" ng-strict-di>Ng-admin library is already compatible with
ng-strict-di, but you have to explicitly declare dependencies on your custom application code.See the Angular documentation for production for more details about this tweak.