title: No suitable injection token for parameter 'width' of class 'RectangleComponent'. Consider using the @Inject decorator to specify an injection token
body: <p>I trying to build a simple component using StackBlitz Angular. But I keep getting an error: No suitable injection token for parameter 'width' of class 'RectangleComponent'. Consider using the @Inject decorator to specify an injection token. And in console: R3InjectorError(AppModule)[Number -&gt; Number -&gt; Number]: NullInjectorError: No provider for Number! This is the code so far, but I can't even start, because I'm supposed to use constructor as : `</p>
  <pre><code>class Rectangle 
  { 
  height:number; 
  width: number; 
  constructor(height:number, width:number){
  this.height = height; this.width = width;
  }
  }` 
  </code></pre>
  <p>This is what I have so far, trying workarounds.... ```</p>
  <pre><code>@Component({
    selector: 'rectangle',
    templateUrl: './rectangle.component.html',
    styles: [{ font-family: Lato; }],
  })
  @Injectable({
    providedIn: 'root',
  })
  export class RectangleComponent implements OnInit {
    @Input()
    height: number;
    width: number;
  
    constructor(@Inject(Number) height: number, width: number) {
      this.height = height;
      this.width = width;
    }
    ngOnInit(): void {
      console.log('hello bobby');
    }
  }```
  </code></pre>