DEV Community

Nagarajan R
Nagarajan R

Posted on

Answer: Class is using Angular features but is not decorated. Please add an explicit Angular decorator

You'll need to add a @Component decorator to that base class (which should probably also be declared abstract).

This is the bare minimum you can get away with in Angular 9:

@Component({
  template: ''
})
export abstract class BaseComponent {
    @Input() teamName: string;
    @Input() teamSize: number;
    @Input() players: any;

Top comments (0)