Function initAll

  • Initialise all components

    Use the data-module attributes to find, instantiate and init all of the components provided as part of GOV.UK Frontend.

    Parameters

    • Optional config: Config & {
          scope?: Element;
      }

      Config for all components (with optional scope)

    Returns void