# Pass data from angular to Node red query string and get data in Node red

**URL:** <https://discourse.nodered.org/t/pass-data-from-angular-to-node-red-query-string-and-get-data-in-node-red/27025>\
**Category:** General\
**Created:** [21 May 2020 09:17 UTC](https://discourse.nodered.org/t/pass-data-from-angular-to-node-red-query-string-and-get-data-in-node-red/27025 "2020-05-21T09:17:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)\
**Post date:** [21 May 2020 09:17 UTC](https://discourse.nodered.org/t/pass-data-from-angular-to-node-red-query-string-and-get-data-in-node-red/27025/1 "2020-05-21T09:17:45Z")

</div>

Hello,

Can we pass data from angular to node red in query string and get that data on node red initialization or before the api for getting flow is called?

Thanks.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [22 May 2020 00:53 UTC](https://discourse.nodered.org/t/pass-data-from-angular-to-node-red-query-string-and-get-data-in-node-red/27025/2 "2020-05-22T00:53:02Z")

</div>

> [@dhpatel177](#):
>
> Can we pass data from angular to node red

Assuming you are using Dashboard, all of the form or input nodes pass their data back to Node-RED. If you are using a custom ui\_template, you will want to look at the send function.. there is some stuff on my blog and in plenty of other places.

> **[Node-RED Dashboard Template Examples (AngularJS)](https://it.knightnet.org.uk/kb/nr-qa/dashboard-template-examples/)**
>
> Some examples of using AngularJS with the Node-RED Dashboard.
> Not all features of Angular are accessible via the Dashboard.

> [@dhpatel177](#):
>
> get that data on node red initialization or before the api for getting flow is called

Not entirely clear what you mean there. In general, to get data early in initialisation, it needs to be loaded by flows on the first tab using inject nodes with the appropriate setting. You can also use the file store for variables which will be reloaded at startup. MQTT is also useful - with retained messages and an MQTT-in node subscribing to the right topics, flows will be triggered by those topics on startup.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 July 2020 00:53 UTC](https://discourse.nodered.org/t/pass-data-from-angular-to-node-red-query-string-and-get-data-in-node-red/27025/3 "2020-07-21T00:53:04Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
