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
export class BlackListComponent implements OnInit {
@decorate(Input()) componentMethods: BlackListComponentModel = {
name: "",
addNewTitle: "",
addNewForm: new UntypedFormGroup({}),
apiUrlName: "",
itemJsonName: "",
tableConfig: new BehaviorSubject<TableConfigObject>({} as TableConfigObject),
getBlackListItemsMethod: (): Promise<any> => {
return new Promise(resolve => {
resolve(true);
});
},
getBlackListItemsMethodData: new BehaviorSubject<any>(""),
deleteBlackListItemMethod: (): Promise<any> => {
return new Promise(resolve => {
resolve(true);
});
},
deleteBlackListItemMethodData: new BehaviorSubject<any>("")
} as BlackListComponentModel;
}
Class B, C, D is child components of this class A but they also extends class A because there are some definition that I don't want to declare again and again to each children and maintain, like the one above componenetMethods that is changing depending on which child component is loaded and parent class A sets it at some point and passes it to the child like:
The problem is: child component knows about this componentMethods and it compiles ok, but the clas A itself doesn't know that child component that it load has an input field called componentMethods and give me the error as below.
Can't bind to 'componentMethods' since it isn't a known property of 'app-black-list-display'.
The text was updated successfully, but these errors were encountered:
Class A is the main component:
Class B, C, D is child components of this class A but they also extends class A because there are some definition that I don't want to declare again and again to each children and maintain, like the one above
componenetMethods
that is changing depending on which child component is loaded and parent class A sets it at some point and passes it to the child like:<app-black-list-display [componentMethods]="selectedConfig"></app-black-list-display>
The problem is: child component knows about this
componentMethods
and it compiles ok, but the clas A itself doesn't know that child component that it load has an input field calledcomponentMethods
and give me the error as below.Can't bind to 'componentMethods' since it isn't a known property of 'app-black-list-display'.
The text was updated successfully, but these errors were encountered: