Astuces de développement
Ceci est une ancienne révision du document !
source: https://www.reddit.com/r/learnprogramming/comments/9735g2/angular_6_typescript_read_content_from_file_in/
import { HttpClient } from '@angular/common/http'; // and then: this.http.get('assets/test.txt', {responseType: 'text'}) .subscribe(data => console.log(data));