-
Notifications
You must be signed in to change notification settings - Fork 395
Conversation
remove use of AsyncPipe with `*ngFor` - due to angular/angular#31371 remove deprecated `@angular/http` from StackBlitz dependencies remove out of date `.angular-cli.json` from StackBlitz templates - it's unclear that moving to the new `angular.json` format is viable remove unneeded polyfills from StackBlitz templates
@@ -3,7 +3,7 @@ | |||
<mat-icon>arrow_drop_down</mat-icon> | |||
</button> | |||
<mat-menu #versionPicker="matMenu"> | |||
<button mat-menu-item *ngFor="let version of docVersions | async" | |||
<button mat-menu-item *ngFor="let version of docVersions" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AsyncPipe removed due to the interaction of types defined for NgForOf and AsyncPipe (tracked in angular/angular#31371).
Alternatives were to type it as Observable<any>
or disable one of strictNullChecks
, enableIvy
, or fullTemplateTypeCheck
.
Reproduction and more details at: https://github.com/Splaktar/ngfor-asyncpipe-ivy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this workaround may work:
https://github.com/angular/angular/pull/32980/files?file-filters%5B%5D=.html#diff-986a7d69debab319598e3a2e92ea615dR24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and it does. Will update in a follow up PR.
Going to verify the StackBlitz changes on the dev instance. I also got another idea to try for allowing the use of the AsyncPipe with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
allow the exported/downloaded project from StackBlitz to be functional - move files into /src and /src/app to match a normal configuration rename Stackblitz to StackBlitz use StackBlitz logo to launch examples use a relative URL for downloading `versions.json` update Ivy fix for VersionPicker log errors during app bootstrap in StackBlitz switch StackBlitz examples to SCSS fix lint warnings in deploy script add ignores for Firebase Fixes #623. Fixes #629. Relates to #642.
allow the exported/downloaded project from StackBlitz to be functional - move files into /src and /src/app to match a normal configuration rename Stackblitz to StackBlitz use StackBlitz logo to launch examples use a relative URL for downloading `versions.json` update Ivy fix for VersionPicker log errors during app bootstrap in StackBlitz switch StackBlitz examples to SCSS fix lint warnings in deploy script add ignores for Firebase Fixes #623. Fixes #629. Relates to #642.
* fix(stack-blitz): add more configuration files to the template allow the exported/downloaded project from StackBlitz to be functional - move files into /src and /src/app to match a normal configuration rename Stackblitz to StackBlitz use StackBlitz logo to launch examples use a relative URL for downloading `versions.json` update Ivy fix for VersionPicker log errors during app bootstrap in StackBlitz switch StackBlitz examples to SCSS fix lint warnings in deploy script add ignores for Firebase Fixes #623. Fixes #629. Relates to #642. * migrate workspace for @angular/core@9.0.0-beta Decorates all declared undecorated provider classes with @Injectable * feat: update to 9.0.0-next.x and enable Ivy rendering engine add 9.0.0-next.0 to versions list - point it to material2-docs-dev for now * fix(ci): update docker image to latest CircleCI NodeJS LTS the prior version used `yarn@1.10.1` - @angular-devkit/build-angular@0.900.0-next.8 throws an error - Expected version ">= 1.13.0". Got "1.10.1" * refactor(tools): convert deploy script from npm to yarn re-enable Angular CLI's build-optimizer
remove use of AsyncPipe with `*ngFor` - due to angular/angular#31371 remove deprecated `@angular/http` from StackBlitz dependencies remove out of date `.angular-cli.json` from StackBlitz templates - it's unclear that moving to the new `angular.json` format is viable remove unneeded polyfills from StackBlitz templates
allow the exported/downloaded project from StackBlitz to be functional - move files into /src and /src/app to match a normal configuration rename Stackblitz to StackBlitz use StackBlitz logo to launch examples use a relative URL for downloading `versions.json` update Ivy fix for VersionPicker log errors during app bootstrap in StackBlitz switch StackBlitz examples to SCSS fix lint warnings in deploy script add ignores for Firebase Fixes #623. Fixes #629. Relates to #642.
PR Checklist
Please check that your PR fulfills the following requirements:
What is the current behavior?
@angular/http
library.angular-cli.json
Issue Number:
N/A
What is the new behavior?
*ngFor
@angular/http
from StackBlitz dependencies.angular-cli.json
from StackBlitz templatesangular.json
format is viableOther information
There is one remaining issue blocking the app from building with Ivy:
_MatTabLinkBase
needs the@Directive()
treatment i.e.@crisbeto is fixing it in angular/components#17282.