feat(ivy): implement unknown element detection in jit mode (#33419)

In ViewEngine we used to throw an error if we encountered an unknown element while rendering. We have this already for Ivy in AoT, but we didn't in JiT. These changes implement the error for JiT mode.

PR Close #33419
This commit is contained in:
crisbeto
2019-10-26 12:44:03 +02:00
committed by atscott
parent ac9d044cad
commit c83f5013bf
6 changed files with 132 additions and 12 deletions

View File

@ -958,7 +958,7 @@ Did you run and wait for 'resolveComponentResources()'?` :
onlyInIvy(`Unknown property warning logged instead of an error`)
.it('should error on unknown bound properties on custom elements by default', () => {
@Component({template: '<some-element [someUnknownProp]="true"></some-element>'})
@Component({template: '<div [someUnknownProp]="true"></div>'})
class ComponentUsingInvalidProperty {
}