Answers for "how to read from asset in angular"

0

how to read from asset in angular

private httpClient: HttpClient;

  constructor(http: HttpClient) {
    this.httpClient = http;
  }

this.httpClient.get('assets/Maze1.txt', { responseType: 'text' })
      .subscribe(data => console.log(data));
Posted by: Guest on September-23-2021

Code answers related to "how to read from asset in angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language