Currently, I am delving into an Angular project and came across a peculiar line of code in the component.ts file provided by my instructor.
@Input() public searchType!: string;
This line resides within the OnInit()
function of the component's TypeScript. However, the exclamation mark '!' is throwing me off - what significance does it hold in this context? In other programming languages like PHP or Java, it typically symbolizes inequality, but its role seems different here when initializing a variable in TypeScript.