# Has anyone integrated an Elm element into Angular?

**URL:** <https://discourse.elm-lang.org/t/has-anyone-integrated-an-elm-element-into-angular/10386>\
**Category:** Learn\
**Created:** [August 10, 2025, 3:07pm UTC](https://discourse.elm-lang.org/t/has-anyone-integrated-an-elm-element-into-angular/10386 "2025-08-10T15:07:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Confidenceman02](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/confidenceman02/32/4396_2.png) [@Confidenceman02](https://discourse.elm-lang.org/u/Confidenceman02)\
**Post date:** [August 11, 2025, 1:58pm UTC](https://discourse.elm-lang.org/t/has-anyone-integrated-an-elm-element-into-angular/10386/2 "2025-08-11T13:58:48Z")

</div>

> [@adamyakes](#):
>
> .

Does Angular work with a VDOM? If it manages it’s own VDOM then it might just consider the element empty and not destroy it when diffing. Elm pretty reliably does this. In fact I usually use empty element like `div[][]` to bind non elm libraries like text editors etc.

> Also, I don’t know what happens to a `Browser.element` if some external JS removes the DOM element that it’s “controlling” - does it crash, gracefully terminate itself, hang around in memory, updating an element tree that’s not actually in `window.document` anymore.

We were just discussing that [here](https://discourse.elm-lang.org/t/elm-programs-that-dont-die/10377/3) 😀

Basically… No it doesn’t gracefully clean itself up.

---

_[View the full topic](https://discourse.elm-lang.org/t/has-anyone-integrated-an-elm-element-into-angular/10386)._
