This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Description
If I have two views e.g.
root.a
root.b
when in b there is the parent div but a is loaded first, then the parent div is not appended.
I think this is related to, that the function is called during the init process:
search-box-parent-model.coffee line 43:
init: =>
if @attrs.parentdiv?
@addToParentDiv()
Adding this to line 60 could help:
@scope.$on '$stateChangeSuccess', =>
if @attrs.parentdiv?
@addToParentDiv()
else
@addAsMapControl()
Maybe it needs to be checked if it was already added. I can create a pull request on it.