/signal-apis

Primary LanguageTypeScript

SignalApis

  • Inputs
    • optional (can have a default value, or can be undefined)
    • required (no default value is allowed) - must be provided by the parent component
    • transform type both types <TOutput, TInput>
  • Outputs
    • output
      • alias
    • outputFromObservable
    • outputToObservable - Signals do not make sense here
  • Model inputs
    • Required
    • Initial value
    • Alias
  • View Children
    • ViewChild
      • required (changes the type) - throws error if undefined,
      • read
    • ViewChildren
      • no required
  • Content Queries
    • ContentChild
      • required
      • read
      • descendants
    • ContentChildren
      • read
      • descendants
  • new lifecycle hooks (afterRender, afterNextRender)
  • Default content in ng-content / Angular v 18