(exampleName: string)
| 13 | @Injectable({ providedIn: 'root' }) |
| 14 | export class ExamplesService { |
| 15 | async getConfig(exampleName: string): Promise<StackblitzConfig> { |
| 16 | return (await stackblitzProjectFiles[ |
| 17 | `./${exampleName}/stackblitz.yml` |
| 18 | ]()) as StackblitzConfig; |
| 19 | } |
| 20 | |
| 21 | async load(element: HTMLElement, exampleName: string) { |
| 22 | const config = await this.getConfig(exampleName); |