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:
gconsidine
2017-09-27 15:04:09 -04:00
parent bd5e33c2f4
commit 297904462d
17 changed files with 253 additions and 159 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" ng-app="awApp">
<html>
<head>
{% load staticfiles %}
<meta charset="utf-8">