From b80d970b6e0b595e85c3973a7063f8c08d197b1f Mon Sep 17 00:00:00 2001 From: dinnerhe <61226161+dinnerhe@users.noreply.github.com> Date: Tue, 26 Nov 2024 21:40:32 -0600 Subject: [PATCH] Upgrade Angular Renaissance to Angular 19(Remove standalone flag) --- .../angularRenaissance/name.component.ts | 1 - .../angularRenaissance/name.component.ts | 1 - .../doublecount.component.ts | 5 +- .../helloworld.component.ts | 5 +- .../angularRenaissance/cssstyle.component.ts | 3 +- .../angularRenaissance/colors.component.ts | 1 - .../angularRenaissance/counter.component.ts | 1 - .../inputfocused.component.ts | 5 +- .../trafficlight.component.ts | 5 +- .../angularRenaissance/pagetitle.component.ts | 5 +- .../angularRenaissance/time.component.ts | 1 - .../angularRenaissance/app.component.ts | 1 - .../userprofile.component.ts | 1 - .../answer-button.component.ts | 1 - .../angularRenaissance/app.component.ts | 4 +- .../angularRenaissance/app.component.ts | 1 - .../funny-button.component.ts | 1 - .../angularRenaissance/app.component.ts | 1 - .../funny-button.component.ts | 1 - .../angularRenaissance/app.component.ts | 1 - .../user-profile.component.ts | 1 - .../input-hello.component.ts | 1 - .../is-available.component.ts | 1 - .../angularRenaissance/pick-pill.component.ts | 1 - .../color-select.component.ts | 1 - .../angularRenaissance/app.component.ts | 1 - .../angularRenaissance/users.component.ts | 1 - package.json | 2 +- pnpm-lock.yaml | 10180 +++++++++------- 29 files changed, 5621 insertions(+), 4613 deletions(-) diff --git a/content/1-reactivity/1-declare-state/angularRenaissance/name.component.ts b/content/1-reactivity/1-declare-state/angularRenaissance/name.component.ts index e756e958..942c0006 100644 --- a/content/1-reactivity/1-declare-state/angularRenaissance/name.component.ts +++ b/content/1-reactivity/1-declare-state/angularRenaissance/name.component.ts @@ -1,7 +1,6 @@ import { Component, signal } from "@angular/core"; @Component({ - standalone: true, selector: "app-name", template: `

Hello {{ name() }}

`, }) diff --git a/content/1-reactivity/2-update-state/angularRenaissance/name.component.ts b/content/1-reactivity/2-update-state/angularRenaissance/name.component.ts index 3d0f2ff9..763aa321 100644 --- a/content/1-reactivity/2-update-state/angularRenaissance/name.component.ts +++ b/content/1-reactivity/2-update-state/angularRenaissance/name.component.ts @@ -1,7 +1,6 @@ import { Component, signal } from "@angular/core"; @Component({ - standalone: true, selector: "app-name", template: `

Hello {{ name() }}

`, }) diff --git a/content/1-reactivity/3-computed-state/angularRenaissance/doublecount.component.ts b/content/1-reactivity/3-computed-state/angularRenaissance/doublecount.component.ts index f14d7270..015e3755 100644 --- a/content/1-reactivity/3-computed-state/angularRenaissance/doublecount.component.ts +++ b/content/1-reactivity/3-computed-state/angularRenaissance/doublecount.component.ts @@ -1,11 +1,10 @@ import { Component, computed, signal } from "@angular/core"; @Component({ - standalone: true, - selector: "app-doublecount", + selector: "app-double-count", template: `
{{ doubleCount() }}
`, }) -export class DoublecountComponent { +export class DoubleCountComponent { count = signal(10); doubleCount = computed(() => this.count() * 2); diff --git a/content/2-templating/1-minimal-template/angularRenaissance/helloworld.component.ts b/content/2-templating/1-minimal-template/angularRenaissance/helloworld.component.ts index be38ebd4..bb970562 100644 --- a/content/2-templating/1-minimal-template/angularRenaissance/helloworld.component.ts +++ b/content/2-templating/1-minimal-template/angularRenaissance/helloworld.component.ts @@ -1,8 +1,7 @@ import { Component } from "@angular/core"; @Component({ - standalone: true, - selector: "app-helloworld", + selector: "app-hello-world", template: `

Hello world

`, }) -export class HelloworldComponent {} +export class HelloWorldComponent {} diff --git a/content/2-templating/2-styling/angularRenaissance/cssstyle.component.ts b/content/2-templating/2-styling/angularRenaissance/cssstyle.component.ts index bb81145a..9f9a5fbe 100644 --- a/content/2-templating/2-styling/angularRenaissance/cssstyle.component.ts +++ b/content/2-templating/2-styling/angularRenaissance/cssstyle.component.ts @@ -1,8 +1,7 @@ import { Component } from "@angular/core"; @Component({ - standalone: true, - selector: "app-cssstyle", + selector: "app-css-style", template: `

I am red

diff --git a/content/2-templating/3-loop/angularRenaissance/colors.component.ts b/content/2-templating/3-loop/angularRenaissance/colors.component.ts index 5e210a52..ebf0ddf9 100644 --- a/content/2-templating/3-loop/angularRenaissance/colors.component.ts +++ b/content/2-templating/3-loop/angularRenaissance/colors.component.ts @@ -1,7 +1,6 @@ import { Component } from "@angular/core"; @Component({ - standalone: true, selector: "app-colors", template: `