4bc01fe872
Due to each field template being loaded asynchronously it was possible that some templates hadn't been put to the $templateCache by the time they were requested from it for rendering a field directive. This lead to some random field shown in the initial document not being rendered at all. Fix this problem by using promises, effectively delaying the field rendering until the moment the template is finally loaded. Using promises also allows to not use $templateCache at all - the templateContents are passed as resolve() method argument. Also add 'ng-cloak' directive to the toplevel Workbook div to prevent raw Angular template flickering during initial load. Change-Id: I8a52b9730b52d4dd20400460137576713c081867 Closes-Bug: #1428730 |
||
---|---|---|
.. | ||
templatesSpec.js | ||
utilsSpec.js |