angular2-hmr
- Version 0.8.1
- Published
- No dependencies
- Apache-2.0 license
Install
npm i angular2-hmr
yarn add angular2-hmr
pnpm add angular2-hmr
Overview
angular2-hmr: Hot Module Replacement for Webpack and Angular 2
Index
Variables
variable HMR_STATE
const HMR_STATE: OpaqueToken;
Functions
function HmrState
HmrState: (namespaceOrConfig?: string | any, config?: any) => Function;
function hotModuleReplacement
hotModuleReplacement: ( bootloader: Function, module: any, options?: HotModuleReplacementOptions) => void;
function provideHmrState
provideHmrState: (initialState?: {}) => Array<any>;
function setDev
setDev: (newDev: string | boolean) => boolean | void;
Classes
class HmrStore
class HmrStore {}
property dev
static dev: boolean;
method dispose
static dispose: () => void;
method get
static get: (prop: any) => any;
method getState
static getState: () => any;
method select
static select: (name: any, getState: any) => any;
method set
static set: (prop: any, value: any) => any;
method toJSON
static toJSON: () => any;
class OpaqueToken
class OpaqueToken {}
constructor
constructor(_desc: string);
method toString
toString: () => string;
Interfaces
interface HotModuleReplacementOptions
interface HotModuleReplacementOptions {}
property data
data?: any;
property getState
getState?: Function;
property globalDispose
globalDispose?: string;
property localStorage
localStorage?: boolean;
property LOCALSTORAGE_KEY
LOCALSTORAGE_KEY?: string;
property storeToken
storeToken?: any;
Package Files (4)
Dependencies (0)
No dependencies.
Dev Dependencies (6)
Peer Dependencies (1)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/angular2-hmr
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/angular2-hmr)
- HTML<a href="https://www.jsdocs.io/package/angular2-hmr"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3728 ms. - Missing or incorrect documentation? Open an issue for this package.