We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cbdfdb commit 17c2ad9Copy full SHA for 17c2ad9
src/app/app.component.ts
@@ -1,5 +1,7 @@
1
import { Component } from '@angular/core';
2
import { RouterOutlet } from '@angular/router';
3
+// @ts-expect-error TypeScript cannot provide types based on attributes yet
4
+import configFileContent from './app.config.ts' with { loader: 'text' };
5
6
@Component({
7
selector: 'app-root',
@@ -10,4 +12,8 @@ import { RouterOutlet } from '@angular/router';
10
12
})
11
13
export class AppComponent {
14
title = 'import-attribute';
15
+
16
+ constructor() {
17
+ console.log(configFileContent);
18
+ }
19
}
0 commit comments