From 116a97a031db93f8325623beeabe6a969a04f753 Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Tue, 29 Apr 2025 18:21:10 +0200 Subject: [PATCH] docs(docs-infra): fix first-app intro example (#61042) fixes #60844 PR Close #61042 --- .../content/tutorials/first-app/intro/app.component.ts | 9 +++++++++ adev/src/content/tutorials/first-app/intro/config.json | 5 ++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 adev/src/content/tutorials/first-app/intro/app.component.ts diff --git a/adev/src/content/tutorials/first-app/intro/app.component.ts b/adev/src/content/tutorials/first-app/intro/app.component.ts new file mode 100644 index 00000000000..5321711c297 --- /dev/null +++ b/adev/src/content/tutorials/first-app/intro/app.component.ts @@ -0,0 +1,9 @@ +import {Component} from '@angular/core'; + +@Component({ + selector: 'app-root', + template: ` + Welcome to Angular! + `, +}) +export class AppComponent {} diff --git a/adev/src/content/tutorials/first-app/intro/config.json b/adev/src/content/tutorials/first-app/intro/config.json index d60096b3ca1..ec33a37867b 100644 --- a/adev/src/content/tutorials/first-app/intro/config.json +++ b/adev/src/content/tutorials/first-app/intro/config.json @@ -1,7 +1,6 @@ { "title": "Your first Angular app", "type": "editor", - "src": "../steps/14-http/src", - "nextTutorial": "learn-angular", - "openFiles": ["src/app/app.component.ts"] + "nextTutorial": "first-app", + "openFiles": ["app.component.ts"] }