In AngularJs we could make a directive attribute required. How do we do that in Angular with @Input? The docs don\'t mention it.
Eg.
@Component({ selec
You can do it like this:
constructor() {} ngOnInit() { if (!this.a) throw new Error(); }