mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 22:37:41 -02:30
Implement manual initialzation for Angular app
Manual initialization allows for some asynchronous work to finish ahead of Angular's startup. The initial motivation is to be able to guarantee translation files have been fetched before rendering content that needs translation. If a locale isn't supported or if the request to get a json file fails, the i18n service falls back to en. Signed-off-by: gconsidine <gconsidi@redhat.com>
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
import '~features/credentials';
|
||||
import atLibServices from '~services';
|
||||
import atLibComponents from '~components';
|
||||
import atLibModels from '~models';
|
||||
|
||||
angular.module('at.features', [
|
||||
'at.features.credentials'
|
||||
import atFeaturesCredentials from '~features/credentials';
|
||||
|
||||
const MODULE_NAME = 'at.features';
|
||||
|
||||
angular.module(MODULE_NAME, [
|
||||
atLibServices,
|
||||
atLibComponents,
|
||||
atLibModels,
|
||||
atFeaturesCredentials
|
||||
]);
|
||||
|
||||
export default MODULE_NAME;
|
||||
|
||||
Reference in New Issue
Block a user