Interface TranscludeFn


@JsType(isNative=true, name="ng.TranscludeFn", namespace="<global>") public interface TranscludeFn
A function passed to directive link functions for transcluded content. It behaves like a linking function, with the `scope` argument automatically created as a new child of the transcluded parent scope. The function returns the DOM content to be injected (transcluded) into the directive.
  • Method Details

    • call

      Object call(Object cloneAttachFn, Node futureParentElement, TranscludeFn.CallSlotNameUnionType slotName)
      Invokes the callable TranscludeFn contract.
      Parameters:
      cloneAttachFn - Value supplied for the cloneAttachFn parameter.
      futureParentElement - Value supplied for the futureParentElement parameter.
      slotName - Value supplied for the slotName parameter.
      Returns:
      Method result.
    • call

      @JsOverlay default Object call(Object cloneAttachFn, Node futureParentElement, String slotName)
      Invokes the callable TranscludeFn contract.
      Parameters:
      cloneAttachFn - Value supplied for the cloneAttachFn parameter.
      futureParentElement - Value supplied for the futureParentElement parameter.
      slotName - Value supplied for the slotName parameter.
      Returns:
      Method result.
    • call

      @JsOverlay default Object call(Object cloneAttachFn, Node futureParentElement, double slotName)
      Invokes the callable TranscludeFn contract.
      Parameters:
      cloneAttachFn - Value supplied for the cloneAttachFn parameter.
      futureParentElement - Value supplied for the futureParentElement parameter.
      slotName - Value supplied for the slotName parameter.
      Returns:
      Method result.
    • getIsSlotFilled

      @JsProperty TranscludeFn.IsSlotFilledCallback getIsSlotFilled()
      Added by your `controllersBoundTransclude` wrapper.
    • setIsSlotFilled

      @JsProperty void setIsSlotFilled(TranscludeFn.IsSlotFilledCallback isSlotFilled)
      Added by your `controllersBoundTransclude` wrapper.