App now loads reliably.

This commit is contained in:
Clinton Alexander 2016-07-08 11:58:01 +01:00
parent dc0658f56e
commit 3a614478ba
2 changed files with 5 additions and 0 deletions

View File

@ -185,6 +185,7 @@ define([
'js/Deal'
],
(angular, angularRoute, $, fcsaNumber, semantic, maskedInput, _, Deal) => {
Deal()
let irsViewer = angular.module('irsViewer', ['ngRoute', 'fcsa-number'])
.config(($routeProvider, $locationProvider) => {
$routeProvider

View File

@ -27,4 +27,8 @@ require.config({
require(['angular', 'js/app'], (angular, app) => {
var $html = angular.element(document.getElementsByTagName('html')[0])
angular.element().ready(function() {
// bootstrap the app manually
angular.bootstrap(document, ['irsViewer']);
});
});