Currently, core depends on the browser, which means that other platforms (e.g., NativeScript or webworker) cannot use the bootstrapping logic core provides. This PR extract makes bootstrapping logic in core completely platform-independent. The browser-specific code was moved to "angular2/platforms/browser". BREAKING CHANGE A few private helpers (e.g., platformCommon or applicationCommon) were removed or replaced with other helpers. Look at PLATFORM_COMMON_PROVIDERS, APPLICATION_COMMON_PROVIDERS, BROWSER_PROVIDERS, BROWSER_APP_PROVIDERS to see if they export the providers you need. Closes #5219 Closes #5280
26 lines
976 B
TypeScript
26 lines
976 B
TypeScript
/**
|
|
* @module
|
|
* @description
|
|
* Starting point to import all public core APIs.
|
|
*/
|
|
export * from './src/core/metadata';
|
|
export * from './src/core/util';
|
|
export * from './src/core/di';
|
|
export * from './src/common/pipes';
|
|
export * from './src/facade/facade';
|
|
export * from './src/core/services';
|
|
export * from './src/core/linker';
|
|
export {platform, createNgZone, PlatformRef, ApplicationRef} from './src/core/application_ref';
|
|
export {APP_ID, APP_COMPONENT} from './src/core/application_tokens';
|
|
export * from './src/core/zone';
|
|
export * from './src/core/render';
|
|
export * from './src/common/directives';
|
|
export * from './src/common/forms';
|
|
export * from './src/core/debug';
|
|
export * from './src/core/change_detection';
|
|
export * from './src/core/platform_directives_and_pipes';
|
|
export * from './src/core/dev_mode';
|
|
export * from './src/core/reflection/reflection';
|
|
export * from './src/core/application_common_providers';
|
|
export * from './src/core/platform_common_providers';
|