# X-red script does not interpret angular code

**URL:** <https://discourse.nodered.org/t/x-red-script-does-not-interpret-angular-code/2029>\
**Category:** General\
**Created:** [3 August 2018 12:12 UTC](https://discourse.nodered.org/t/x-red-script-does-not-interpret-angular-code/2029 "2018-08-03T12:12:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CatalinFetoiu](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@CatalinFetoiu](https://discourse.nodered.org/u/CatalinFetoiu)\
**Post date:** [3 August 2018 12:12 UTC](https://discourse.nodered.org/t/x-red-script-does-not-interpret-angular-code/2029/1 "2018-08-03T12:12:40Z")

</div>

Hello,

I tried to use to following code for the edit dialog of a node: [https://pastebin.com/raw/TzA0Hnct](https://pastebin.com/raw/TzA0Hnct)  
From the console logs I see that angular is defined but it does not expand the value of count, showing it like {{count}}.

What could be the problem?  
Thank you!

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 August 2018 14:36 UTC](https://discourse.nodered.org/t/x-red-script-does-not-interpret-angular-code/2029/2 "2018-08-03T14:36:49Z")

</div>

As mentioned previously we don’t support Angular for this, so you are probably on your own for this one. Good luck.

---

<div class="post-metadata">

**Author:** ![CatalinFetoiu](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@CatalinFetoiu](https://discourse.nodered.org/u/CatalinFetoiu)\
**Post date:** [3 August 2018 14:51 UTC](https://discourse.nodered.org/t/x-red-script-does-not-interpret-angular-code/2029/3 "2018-08-03T14:51:51Z")

</div>

I am not exactly sure of the meaning of "support". Is the html code for the edit dialog somehow filtered? I know that it is parsed for div id-s in the format "node-input-", but are other parts also parsed or modified? I don't see why the angular code would not be interpreted.

Thanks again for the responses!

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [3 August 2018 16:00 UTC](https://discourse.nodered.org/t/x-red-script-does-not-interpret-angular-code/2029/4 "2018-08-03T16:00:16Z")

</div>

The html of the edit dialog is dynamically added to the DOM whenever you open the edit dialog for a given node. It is then removed from the DOM when the dialog closes. I don't know anything about how angular works to suggest why it isn't working here. Have you added anything to your oneditprepare function to tell angular to do anything with the newly added content?

By 'support' we mean that as the main contributors to the node-red code we don't know the answers to your questions and it isn't something we choose to spend our time trying to figure out for you. Sorry.

---

<div class="post-metadata">

**Author:** ![CatalinFetoiu](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@CatalinFetoiu](https://discourse.nodered.org/u/CatalinFetoiu)\
**Post date:** [3 August 2018 21:23 UTC](https://discourse.nodered.org/t/x-red-script-does-not-interpret-angular-code/2029/5 "2018-08-03T21:23:42Z")

</div>

Thank you for the information. I will try to experiment further to see if I can make it work. I understand that the developers team does not want to focus in this direction at the moment.

Thank you for the responses and I will surely come back with questions on other topics 🙂

vin., 3 aug. 2018, 19:10 Nick O'Leary [nodered@discoursemail.com](mailto:nodered@discoursemail.com) a scris:
