From 309f830ccd78fa1fbeacb5655d4ac8b41adcc40a Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 11 Jul 2018 17:20:14 +0200 Subject: [PATCH] build: enable fullTemplateTypeCheck in aot mode (#12100) Enables `fullTemplateTypeCheck` in the aot demo app and e2e app. --- src/demo-app/bottom-sheet/bottom-sheet-demo.html | 2 +- src/demo-app/bottom-sheet/bottom-sheet-demo.ts | 2 +- src/demo-app/dialog/dialog-demo.html | 2 +- src/demo-app/sidenav/sidenav-demo.html | 4 ++-- src/demo-app/tsconfig-aot.json | 3 +-- src/e2e-app/tsconfig-build.json | 3 +-- src/material-examples/tsconfig-build.json | 5 ++++- 7 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/demo-app/bottom-sheet/bottom-sheet-demo.html b/src/demo-app/bottom-sheet/bottom-sheet-demo.html index 802782cc7f9..034ef5e51ba 100644 --- a/src/demo-app/bottom-sheet/bottom-sheet-demo.html +++ b/src/demo-app/bottom-sheet/bottom-sheet-demo.html @@ -38,7 +38,7 @@ folder - Action {{ link }} + Action {{ action }} Description diff --git a/src/demo-app/bottom-sheet/bottom-sheet-demo.ts b/src/demo-app/bottom-sheet/bottom-sheet-demo.ts index 8b8039d3fe1..b41cf9a40d9 100644 --- a/src/demo-app/bottom-sheet/bottom-sheet-demo.ts +++ b/src/demo-app/bottom-sheet/bottom-sheet-demo.ts @@ -48,7 +48,7 @@ export class BottomSheetDemo { template: ` - Action {{ link }} + Action {{ action }} Description diff --git a/src/demo-app/dialog/dialog-demo.html b/src/demo-app/dialog/dialog-demo.html index a4e2fba1eec..ebf76c00326 100644 --- a/src/demo-app/dialog/dialog-demo.html +++ b/src/demo-app/dialog/dialog-demo.html @@ -122,6 +122,6 @@

{{ data.message }}

- + ` diff --git a/src/demo-app/sidenav/sidenav-demo.html b/src/demo-app/sidenav/sidenav-demo.html index 53fcd5647e0..7df77ef46f5 100644 --- a/src/demo-app/sidenav/sidenav-demo.html +++ b/src/demo-app/sidenav/sidenav-demo.html @@ -9,7 +9,7 @@ [fixedInViewport]="fixed" [fixedTopGap]="fixedTop" [fixedBottomGap]="fixedBottom"> Start Side Sidenav
- +

@@ -24,7 +24,7 @@ [fixedInViewport]="fixed" [fixedTopGap]="fixedTop" [fixedBottomGap]="fixedBottom"> End Side Sidenav
- +
Filler Content
diff --git a/src/demo-app/tsconfig-aot.json b/src/demo-app/tsconfig-aot.json index 1ed79d30f9e..09882d5a919 100644 --- a/src/demo-app/tsconfig-aot.json +++ b/src/demo-app/tsconfig-aot.json @@ -33,7 +33,6 @@ ], "angularCompilerOptions": { "skipTemplateCodegen": false, - // TODO: disabled for now due to @angular/forms - "fullTemplateTypeCheck": false + "fullTemplateTypeCheck": true } } diff --git a/src/e2e-app/tsconfig-build.json b/src/e2e-app/tsconfig-build.json index af370e60fde..6bf1c2e84f7 100644 --- a/src/e2e-app/tsconfig-build.json +++ b/src/e2e-app/tsconfig-build.json @@ -42,7 +42,6 @@ ], "angularCompilerOptions": { "skipMetadataEmit": true, - // TODO: disabled for now due to @angular/forms - "fullTemplateTypeCheck": false + "fullTemplateTypeCheck": true } } diff --git a/src/material-examples/tsconfig-build.json b/src/material-examples/tsconfig-build.json index 4fbca15cf37..3cc1a476ca5 100644 --- a/src/material-examples/tsconfig-build.json +++ b/src/material-examples/tsconfig-build.json @@ -37,7 +37,10 @@ "flatModuleOutFile": "index.js", "flatModuleId": "@angular/material-examples", "skipTemplateCodegen": true, - // TODO: disabled for now due to @angular/forms + // TODO(paul): Needs to stay disabled for now because when building the examples in non-release + // format the metadata of Material which is required to build the examples package, are not + // including all re-exports and therefore the build will fail. This issue will be fixed with + // the new compiler CLI that no longer outputs metadata. "fullTemplateTypeCheck": false } }