I am reading data from a text file, and the reading of data works fine, and I can even console.log the data. But I am confused on how I can transfer the data into a variable. Here is my code currently:
let mazeData; //need to get this variable to equal to the 'data' in the code below
this.httpClient.get('assets/Maze1.txt', { responseType: 'text' })
.subscribe(data => console.log(data));