From 2b7aae7de645d43c6c11c357614adce975381418 Mon Sep 17 00:00:00 2001 From: Alexander Dorn Date: Mon, 21 Oct 2024 19:49:10 +0200 Subject: [PATCH] Combine Component and Module to Component and importing components --- agenda/foundations-remote.html | 2 +- js-to-ts/index.html | 5 +- .../default-structure/imports.html | 0 .../default-structure/modules.html | 0 ng-components/index.html | 820 ++++++++++++++---- ng-components/styles/own.css | 142 +++ ng-module/index.html | 358 +------- 7 files changed, 778 insertions(+), 549 deletions(-) rename {ng-module => ng-components}/default-structure/imports.html (100%) rename {ng-module => ng-components}/default-structure/modules.html (100%) create mode 100644 ng-components/styles/own.css diff --git a/agenda/foundations-remote.html b/agenda/foundations-remote.html index 507aba42..78cc368c 100644 --- a/agenda/foundations-remote.html +++ b/agenda/foundations-remote.html @@ -61,7 +61,7 @@

devonfw Angular Foundations

| JavaScript and TypeScript | 09:15 - 10:00 | TypeScript Exercises | 10:00 - 11:00 | -| Angular Components & Modules with exercise | 11:15 - 12:15 | +| Angular Components with exercise | 11:15 - 12:15 | | Angular Data Binding with exercise @Input and @Output| 12:15 - 13:00 | | | Exercise Discussion & Quiz | 15:00 - 15:30 diff --git a/js-to-ts/index.html b/js-to-ts/index.html index 8d235aa8..fe669369 100644 --- a/js-to-ts/index.html +++ b/js-to-ts/index.html @@ -297,9 +297,10 @@

Type Inference

// corrects type let zoo: Animal[] = [new Rhino(), new Elephant(), new Snake()]; +

TypeScript Docs

-

Advanced Types / Type Narrowing

+

Type Narrowing


 function padLeft(value: string, padding: any) {
   if (typeof padding === 'number') {
@@ -313,6 +314,7 @@ 

Advanced Types / Type Narrowing

throw new Error(`Expected string or number, got '${padding}'.`); }
+

TypeScript Docs

Strict Null Checks

@@ -328,6 +330,7 @@

Strict Null Checks

myFunc(null); // compiler error myFunc(undefined); // compiler error +

TypeScript Docs