Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HmrOptions

Options to be passed when HMR is enabled

Hierarchy

  • HmrOptions

Index

Properties

livesyncCallback

livesyncCallback: function

A livesync callback that will be called instead of the original livesync. It gives the HMR a hook to apply the module replacement.

param

A bootstrap callback to be called after HMR is done. It will bootstrap a new angular app within the exisiting platform, using the moduleTypeFactory to get the Module or NgModuleFactory to be used.

Type declaration

    • (bootstrapPlatform: function): void
    • Parameters

      • bootstrapPlatform: function
          • (): void
          • Returns void

      Returns void

Optional moduleTypeFactory

moduleTypeFactory: function

A factory function that returns either Module type or NgModuleFactory type. This needs to be a factory function as the types will change when modules are replaced.

Type declaration

    • (): Type<any> | NgModuleFactory<any>
    • Returns Type<any> | NgModuleFactory<any>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method