parent
67d05eb65f
commit
0b6865d6c6
|
@ -1,4 +1,4 @@
|
||||||
export {AngularEntrypoint} from 'angular2/src/core/angular_entrypoint';
|
export * from 'angular2/src/core/angular_entrypoint';
|
||||||
export {
|
export {
|
||||||
BROWSER_PROVIDERS,
|
BROWSER_PROVIDERS,
|
||||||
CACHED_TEMPLATE_PROVIDER,
|
CACHED_TEMPLATE_PROVIDER,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export {AngularEntrypoint} from 'angular2/src/core/angular_entrypoint';
|
export * from 'angular2/src/core/angular_entrypoint';
|
||||||
export {
|
export {
|
||||||
BROWSER_PROVIDERS,
|
BROWSER_PROVIDERS,
|
||||||
ELEMENT_PROBE_PROVIDERS,
|
ELEMENT_PROBE_PROVIDERS,
|
||||||
|
|
|
@ -33,7 +33,6 @@ export {
|
||||||
} from 'angular2/src/web_workers/shared/service_message_broker';
|
} from 'angular2/src/web_workers/shared/service_message_broker';
|
||||||
export {PRIMITIVE} from 'angular2/src/web_workers/shared/serializer';
|
export {PRIMITIVE} from 'angular2/src/web_workers/shared/serializer';
|
||||||
export * from 'angular2/src/web_workers/shared/message_bus';
|
export * from 'angular2/src/web_workers/shared/message_bus';
|
||||||
export {AngularEntrypoint} from 'angular2/src/core/angular_entrypoint';
|
|
||||||
export {WORKER_APP_ROUTER} from 'angular2/src/web_workers/worker/router_providers';
|
export {WORKER_APP_ROUTER} from 'angular2/src/web_workers/worker/router_providers';
|
||||||
|
|
||||||
export function workerAppPlatform(): PlatformRef {
|
export function workerAppPlatform(): PlatformRef {
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
library angular2.src.core.angular_entrypoint;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Marks a function or method as an Angular 2 entrypoint. Only necessary in Dart code.
|
||||||
|
*
|
||||||
|
* The optional `name` parameter will be reflected in logs when the entry point is processed.
|
||||||
|
*
|
||||||
|
* See [the wiki][] for detailed documentation.
|
||||||
|
* [the wiki]: https://github.com/angular/angular/wiki/Angular-2-Dart-Transformer#entry_points
|
||||||
|
*
|
||||||
|
* ## Example
|
||||||
|
*
|
||||||
|
* ```
|
||||||
|
* @AngularEntrypoint("name-for-debug")
|
||||||
|
* void main() {
|
||||||
|
* bootstrap(MyComponent);
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
class AngularEntrypoint {
|
||||||
|
final String name;
|
||||||
|
const AngularEntrypoint([this.name]);
|
||||||
|
}
|
|
@ -1,23 +1,3 @@
|
||||||
import {CONST} from 'angular2/src/facade/lang';
|
import 'angular2/src/facade/lang'; // kept so that Tools know this is an ES6 file
|
||||||
|
|
||||||
/**
|
// TS does not have AngularEntrypoint
|
||||||
* Marks a function or method as an Angular 2 entrypoint. Only necessary in Dart code.
|
|
||||||
*
|
|
||||||
* The optional `name` parameter will be reflected in logs when the entry point is processed.
|
|
||||||
*
|
|
||||||
* See [the wiki][] for detailed documentation.
|
|
||||||
* [the wiki]: https://github.com/angular/angular/wiki/Angular-2-Dart-Transformer#entry_points
|
|
||||||
*
|
|
||||||
* ## Example
|
|
||||||
*
|
|
||||||
* ```
|
|
||||||
* @AngularEntrypoint("name-for-debug")
|
|
||||||
* void main() {
|
|
||||||
* bootstrap(MyComponent);
|
|
||||||
* }
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
@CONST()
|
|
||||||
export class AngularEntrypoint {
|
|
||||||
constructor(public name?: String) {}
|
|
||||||
}
|
|
||||||
|
|
|
@ -299,7 +299,7 @@ var NG_INSTRUMENTATION =
|
||||||
['wtfCreateScope', 'wtfEndTimeRange', 'wtfLeave', 'WtfScopeFn:dart', 'wtfStartTimeRange'];
|
['wtfCreateScope', 'wtfEndTimeRange', 'wtfLeave', 'WtfScopeFn:dart', 'wtfStartTimeRange'];
|
||||||
|
|
||||||
var NG_PLATFORM_BROWSER = [
|
var NG_PLATFORM_BROWSER = [
|
||||||
'AngularEntrypoint',
|
'AngularEntrypoint:dart',
|
||||||
'BROWSER_APP_PROVIDERS',
|
'BROWSER_APP_PROVIDERS',
|
||||||
'BROWSER_PROVIDERS',
|
'BROWSER_PROVIDERS',
|
||||||
'BrowserDomAdapter',
|
'BrowserDomAdapter',
|
||||||
|
|
|
@ -1091,8 +1091,6 @@ const UPGRADE = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const BROWSER = [
|
const BROWSER = [
|
||||||
'AngularEntrypoint',
|
|
||||||
'AngularEntrypoint.constructor(name:String)',
|
|
||||||
'BrowserDomAdapter',
|
'BrowserDomAdapter',
|
||||||
'BrowserDomAdapter.addClass(element:any, className:string):any',
|
'BrowserDomAdapter.addClass(element:any, className:string):any',
|
||||||
'BrowserDomAdapter.adoptNode(node:Node):any',
|
'BrowserDomAdapter.adoptNode(node:Node):any',
|
||||||
|
|
Loading…
Reference in New Issue