-
Hi, I make this a discussion because I'm not sure if it's a bug of the library or an intended change.
It was working fine in Angular 13 but in later versions it produces this error: If i put |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
This error is coming directly from Angular as we switched to a new API provided in v14. |
Beta Was this translation helpful? Give feedback.
Well as I already explained, you cannot inherit inputs or anything really by extending interfaces with the same name and think that Angular will magically pickup those inputs somehow like you are doing here.
Interfaces have nothing to do with classes even when have the same name, you are just adding extra type information but nothing in the runtime is affected and Angular also does not care what you do with interfaces.
Like I already said above, your component class MUST extend another component/directive class not interfaces to inherit it's inputs and all the rest of the behaviors. You may refer to the example I provided to see how it looks like but the way you've built your "inheritance…