From 6232b80741d0aa04e2f16d0f0d6c4bfd2344aa69 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Mon, 3 Nov 2025 17:47:48 +0100 Subject: [PATCH] step 2 --- first-app/src/app/app.html | 1 + first-app/src/app/app.ts | 4 +--- first-app/src/app/home/home.ts | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 first-app/src/app/app.html create mode 100644 first-app/src/app/home/home.ts diff --git a/first-app/src/app/app.html b/first-app/src/app/app.html new file mode 100644 index 0000000..efe5048 --- /dev/null +++ b/first-app/src/app/app.html @@ -0,0 +1 @@ +

Hello world!

\ No newline at end of file diff --git a/first-app/src/app/app.ts b/first-app/src/app/app.ts index 3e08b2d..48c4117 100644 --- a/first-app/src/app/app.ts +++ b/first-app/src/app/app.ts @@ -3,9 +3,7 @@ import {Component} from '@angular/core'; @Component({ selector: 'app-root', imports: [], - template: ` -

Hello world!

- `, + templateUrl: './app.html', styleUrls: ['./app.css'], }) export class App { diff --git a/first-app/src/app/home/home.ts b/first-app/src/app/home/home.ts new file mode 100644 index 0000000..ea303f4 --- /dev/null +++ b/first-app/src/app/home/home.ts @@ -0,0 +1,15 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-home', + imports: [], + template: ` +

+ home works! +

+ `, + styles: `` +}) +export class Home { + +}