22 lines
4.2 KiB
JavaScript
22 lines
4.2 KiB
JavaScript
export { AngularEntrypoint } from 'angular2/src/core/angular_entrypoint';
|
|
export { BROWSER_PROVIDERS, ELEMENT_PROBE_PROVIDERS, ELEMENT_PROBE_PROVIDERS_PROD_MODE, inspectNativeElement, BrowserDomAdapter, By, Title, enableDebugTools, disableDebugTools } from 'angular2/src/platform/browser_common';
|
|
import { isPresent } from 'angular2/src/facade/lang';
|
|
import { BROWSER_PROVIDERS, BROWSER_APP_COMMON_PROVIDERS } from 'angular2/src/platform/browser_common';
|
|
import { platform } from 'angular2/core';
|
|
/**
|
|
* An array of providers that should be passed into `application()` when bootstrapping a component
|
|
* when all templates
|
|
* have been precompiled offline.
|
|
*/
|
|
export const BROWSER_APP_PROVIDERS = BROWSER_APP_COMMON_PROVIDERS;
|
|
/**
|
|
* See {@link bootstrap} for more information.
|
|
*/
|
|
export function bootstrapStatic(appComponentType, customProviders, initReflector) {
|
|
if (isPresent(initReflector)) {
|
|
initReflector();
|
|
}
|
|
let appProviders = isPresent(customProviders) ? [BROWSER_APP_PROVIDERS, customProviders] : BROWSER_APP_PROVIDERS;
|
|
return platform(BROWSER_PROVIDERS).application(appProviders).bootstrap(appComponentType);
|
|
}
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9zdGF0aWMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbmd1bGFyMi9wbGF0Zm9ybS9icm93c2VyX3N0YXRpYy50cyJdLCJuYW1lcyI6WyJib290c3RyYXBTdGF0aWMiXSwibWFwcGluZ3MiOiJBQUFBLFNBQVEsaUJBQWlCLFFBQU8sc0NBQXNDLENBQUM7QUFDdkUsU0FDRSxpQkFBaUIsRUFDakIsdUJBQXVCLEVBQ3ZCLGlDQUFpQyxFQUNqQyxvQkFBb0IsRUFDcEIsaUJBQWlCLEVBQ2pCLEVBQUUsRUFDRixLQUFLLEVBQ0wsZ0JBQWd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