@ -14,3 +14,4 @@ export * from './directives';
|
||||
export * from './forms';
|
||||
export * from './render';
|
||||
export * from './profile';
|
||||
export {bootstrap} from 'angular2/src/core/application';
|
||||
|
@ -6,3 +6,4 @@ export * from './directives';
|
||||
export * from './forms';
|
||||
export * from './render';
|
||||
export * from './profile';
|
||||
export {bootstrap} from 'angular2/src/core/application';
|
||||
|
@ -4,7 +4,6 @@
|
||||
* Define angular core API here.
|
||||
*/
|
||||
export {APP_COMPONENT} from 'angular2/src/core/application_tokens';
|
||||
export {commonBootstrap as bootstrap} from 'angular2/src/core/application_common';
|
||||
export {Type} from 'angular2/src/core/facade/lang';
|
||||
export {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
|
||||
|
@ -1,5 +1,23 @@
|
||||
/// <reference path="../../../globals.d.ts" />
|
||||
var _global: BrowserNodeGlobal = <any>(typeof window === 'undefined' ? global : window);
|
||||
|
||||
// TODO(jteplitz602): Load WorkerGlobalScope from lib.webworker.d.ts file #3492
|
||||
declare var WorkerGlobalScope;
|
||||
var globalScope: BrowserNodeGlobal;
|
||||
if (typeof window === 'undefined') {
|
||||
if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
|
||||
// TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492
|
||||
globalScope = <any>self;
|
||||
} else {
|
||||
globalScope = <any>global;
|
||||
}
|
||||
} else {
|
||||
globalScope = <any>window;
|
||||
};
|
||||
|
||||
// Need to declare a new variable for global here since TypeScript
|
||||
// exports the original value of the symbol.
|
||||
var _global: BrowserNodeGlobal = globalScope;
|
||||
|
||||
export {_global as global};
|
||||
|
||||
export var Type = Function;
|
||||
|
@ -1,5 +1,6 @@
|
||||
import {EventEmitter} from 'angular2/src/core/facade/async';
|
||||
import {BaseException} from 'angular2/src/core/facade/lang';
|
||||
export {EventEmitter, Observable} from 'angular2/src/core/facade/async';
|
||||
|
||||
function _abstract() {
|
||||
throw new BaseException("This method is abstract");
|
||||
|
@ -6,6 +6,7 @@ import {
|
||||
import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
|
||||
import {BaseException} from "angular2/src/core/facade/lang";
|
||||
import {bootstrapUICommon} from "angular2/src/web_workers/ui/impl";
|
||||
export * from 'angular2/src/web_workers/shared/message_bus';
|
||||
|
||||
/**
|
||||
* Bootstrapping a WebWorker
|
||||
|
@ -10,6 +10,7 @@ import {Promise} from 'angular2/src/core/facade/async';
|
||||
import {bootstrapWebWorkerCommon} from "angular2/src/web_workers/worker/application_common";
|
||||
import {ApplicationRef} from "angular2/src/core/application_ref";
|
||||
import {Injectable} from "angular2/di";
|
||||
export * from "angular2/src/web_workers/shared/message_bus";
|
||||
|
||||
// TODO(jteplitz602) remove this and compile with lib.webworker.d.ts (#3492)
|
||||
interface PostMessageInterface {
|
||||
|
1
modules/angular2/web_worker/ui.ts
Normal file
1
modules/angular2/web_worker/ui.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from "../src/web_workers/ui/application";
|
9
modules/angular2/web_worker/worker.ts
Normal file
9
modules/angular2/web_worker/worker.ts
Normal file
@ -0,0 +1,9 @@
|
||||
export * from '../metadata';
|
||||
export * from '../change_detection';
|
||||
export * from '../core';
|
||||
export * from '../di';
|
||||
export * from '../directives';
|
||||
export * from '../forms';
|
||||
export * from '../render';
|
||||
export * from '../profile';
|
||||
export * from '../src/web_workers/worker/application';
|
File diff suppressed because it is too large
Load Diff
@ -1,17 +1,4 @@
|
||||
$SCRIPTS$
|
||||
|
||||
window = {
|
||||
setTimeout: setTimeout,
|
||||
Map: Map,
|
||||
Set: Set,
|
||||
Array: Array,
|
||||
Reflect: Reflect,
|
||||
RegExp: RegExp,
|
||||
Promise: Promise,
|
||||
Date: Date,
|
||||
zone: zone
|
||||
};
|
||||
assert = function() {};
|
||||
importScripts("b64.js");
|
||||
|
||||
|
||||
|
@ -1,19 +1,5 @@
|
||||
$SCRIPTS$
|
||||
|
||||
window = {
|
||||
setTimeout: setTimeout,
|
||||
Map: Map,
|
||||
Set: Set,
|
||||
Array: Array,
|
||||
Reflect: Reflect,
|
||||
RegExp: RegExp,
|
||||
Promise: Promise,
|
||||
Date: Date,
|
||||
zone: zone
|
||||
};
|
||||
assert = function() {};
|
||||
|
||||
|
||||
System.config({
|
||||
baseURL: '/',
|
||||
defaultJSExtensions: true,
|
||||
|
@ -1,19 +1,5 @@
|
||||
$SCRIPTS$
|
||||
|
||||
window = {
|
||||
setTimeout: setTimeout,
|
||||
Map: Map,
|
||||
Set: Set,
|
||||
Array: Array,
|
||||
Reflect: Reflect,
|
||||
RegExp: RegExp,
|
||||
Promise: Promise,
|
||||
Date: Date,
|
||||
zone: zone
|
||||
};
|
||||
assert = function() {};
|
||||
|
||||
|
||||
System.config({
|
||||
baseURL: '/',
|
||||
defaultJSExtensions: true,
|
||||
|
Reference in New Issue
Block a user