May 31, 2023
With Angular 16, you can use the {ððððĒðððð:ðĄððĒð} option for an @ðžðððĒðĄ() decorator to make a property mandatory.
This means that the component will only work if you pass a value for that property.
ðĻâðŧïžĢïžŊïžĪïžĨãïžģïžŪïžĐïž°ïž°ïžĨïžī
âïžĨïžēïžēïžŊïžē
If the name property of GreetingComponent is not filled, the error message will be something like this:
ðļðððð: ððð ð ððð ððððĒðððð @ðžðððĒðĄ() ððð ðððððððððĄ ðšððððĄððððķððððððððĄ: ðððð
#angular #angular16 #requiredInput #programming