How to pass data to another file?

import React, {Component} from 'react';
import axios from 'axios';

export default class apidata extends Component {

    componentDidMount() {
        .then(res => {
          const items =;


How to pass the items json data to parent class file that import this class ?

Hi @LinhMino,

You are using Typescript in UiPath?

And for your question,
As it is a angular project, create an environment variable in the file environment.ts and import the environment file into this file as ‘import { environment } from ‘…/environments/environment’;’ … so that you can map it to an environment variable.

Then again you can import the same into any other componants and use the data.

Another way is to export the json file as text file and use de-serialize activity to import the json data into your workflow.

Karthik Byggari