import { Component, OnInit, Input } from "@angular/core"; @Component({ selector: "app-input", templateUrl: "./input.component.html", styleUrls: ["./input.component.css"] }) export class InputComponent implements OnInit { @Input() placeholder: string; @Input() type: string; @Input() maxLength: number; @Input() label: string; constructor() {} ngOnInit() {} }