You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have defined Input binding in the base class in some cases. The sample code is like below.
export class Base {
@Input() text: string;
}
@Component({
selector: 'app-test',
templateUrl: './test.component.html',
styleUrls: ['./test.component.scss']
})
export class TestComponent extends Base {
constructor() {
super();
}
}
And, binding this 'text' input with appComponent
<app-test [text]="'ivy test'"></app-test>
With enable ivy, it causes compiler error on startup.
ERROR in src/app/app.component.html:1:11 - error TS8002: Can't bind to 'text' since it isn't a known property of 'app-test'.
1. If 'app-test' is an Angular component and it has 'text' input, then verify that it is part of this module.
2. If 'app-test' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
1 <app-test [text]="'ivy test'"></app-test>
~~~~~~~~~~~~~~~~~~~
src/app/app.component.ts:5:16
5 templateUrl: './app.component.html',
~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AppComponent.
If Ivy is not enabled, the compiler will not cause an error.
馃敩 Minimal Reproduction
git clone https://github.com/yusuke-oba1/ivy-test
cd ivy-test
npm install
npm start
馃悶 bug report
Affected Package
The issue is caused by package @angular/coreIs this a regression?
NoDescription
I have defined Input binding in the base class in some cases. The sample code is like below.
And, binding this 'text' input with appComponent
With enable ivy, it causes compiler error on startup.
If Ivy is not enabled, the compiler will not cause an error.
馃敩 Minimal Reproduction
馃實 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: