Tim Deschryver 5/14/2018

Required @Input() properties

Read Original

This article discusses how to create required @Input() properties in Angular components. It covers workarounds like runtime null checks and using the component selector for compile-time validation, and notes that Angular v16.0.0-next.4+ natively supports this feature with @Input({ required: true }). It includes a practical example with a HelloComponent.

Required @Input() properties

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week