You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionassertNotNullOrUndefined<T>(value: T): asserts value is NonNullable<T>{if(value===null||value===undefined){thrownewError(`cannot be undefined or null.`);}}
functionassertNotNullOrUndefined<T>(value: T): asserts value is NonNullable<T>{if(value===null||value===undefined){thrownewError(`cannot be undefined or null.`);}}
Our directive would be used like this
To complete the setup we need to make sure that
ngOnChange
runs on input change.EventEmitter
are auto unsubscribed from.Types that will be used in the code
Utility function for strict mode people 😅
The directive
The text was updated successfully, but these errors were encountered: