Use iframe to other projects in a project with nested page ng-alain built, then a problem iframe page loaded, header parent page disappeared.
Results as shown
The above iframe element still exists but can not see, and finally found the problem because the ng-alain in each time the page is scrolled the page will jump to the top, above the iframe element and then to the top of.
code show as below:
The ultimate solution: to determine whether the iframe loads a page, not when the iframe is loaded execution scroll.scrollToTop () method