
committed by
Misko Hevery

parent
0246b2a2cb
commit
787d1f955f
@ -22,13 +22,6 @@ export {
|
||||
IterableDifferFactory,
|
||||
KeyValueDiffers,
|
||||
KeyValueDiffer,
|
||||
KeyValueDifferFactory,
|
||||
Lexer,
|
||||
Parser,
|
||||
ChangeDispatcher,
|
||||
BindingTarget,
|
||||
DirectiveIndex,
|
||||
DebugContext,
|
||||
ProtoChangeDetector
|
||||
} from 'angular2/src/core/change_detection/change_detection';
|
||||
export * from 'angular2/src/core/change_detection/parser/ast';
|
||||
KeyValueDifferFactory
|
||||
|
||||
} from './change_detection/change_detection';
|
||||
|
@ -14,7 +14,15 @@ import {
|
||||
import {Injector, Inject, Injectable, OpaqueToken, Optional, Binding} from 'angular2/src/core/di';
|
||||
import {StringMap, StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {CONST, CONST_EXPR, isPresent, assertionsEnabled} from 'angular2/src/core/facade/lang';
|
||||
export * from './parser/ast';
|
||||
|
||||
export {
|
||||
ASTWithSource,
|
||||
AST,
|
||||
AstTransformer,
|
||||
PropertyRead,
|
||||
LiteralArray,
|
||||
ImplicitReceiver
|
||||
} from './parser/ast';
|
||||
|
||||
export {Lexer} from './parser/lexer';
|
||||
export {Parser} from './parser/parser';
|
||||
|
@ -19,14 +19,4 @@ export {ElementRef} from './compiler/element_ref';
|
||||
export {TemplateRef} from './compiler/template_ref';
|
||||
export {ViewRef, HostViewRef, ProtoViewRef} from './compiler/view_ref';
|
||||
export {ViewContainerRef} from './compiler/view_container_ref';
|
||||
export {AppView, AppProtoView, AppProtoViewMergeMapping, AppViewContainer} from './compiler/view';
|
||||
export {ComponentRef} from './compiler/dynamic_component_loader';
|
||||
export {
|
||||
ElementInjector,
|
||||
PreBuiltObjects,
|
||||
TreeNode,
|
||||
ProtoElementInjector,
|
||||
DirectiveBinding,
|
||||
EventEmitterAccessor
|
||||
} from './compiler/element_injector';
|
||||
export {ElementBinder} from './compiler/element_binder';
|
||||
|
@ -16,14 +16,13 @@ import {ElementRef} from 'angular2/src/core/compiler/element_ref';
|
||||
export class DebugElement {
|
||||
_elementInjector: ElementInjector;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(private _parentView: AppView, private _boundElementIndex: number) {
|
||||
this._elementInjector = this._parentView.elementInjectors[this._boundElementIndex];
|
||||
}
|
||||
|
||||
static create(elementRef: ElementRef): DebugElement {
|
||||
return new DebugElement(internalView(elementRef.parentView), elementRef.boundElementIndex);
|
||||
}
|
||||
|
||||
get componentInstance(): any {
|
||||
if (!isPresent(this._elementInjector)) {
|
||||
return null;
|
||||
@ -144,7 +143,7 @@ export class DebugElement {
|
||||
* @return {DebugElement}
|
||||
*/
|
||||
export function inspectElement(elementRef: ElementRef): DebugElement {
|
||||
return DebugElement.create(elementRef);
|
||||
return new DebugElement(internalView(elementRef.parentView), elementRef.boundElementIndex);
|
||||
}
|
||||
|
||||
export function asNativeElements(arr: DebugElement[]): any[] {
|
||||
|
@ -12,5 +12,3 @@ export {LimitToPipe} from './pipes/limit_to_pipe';
|
||||
export {LowerCasePipe} from './pipes/lowercase_pipe';
|
||||
export {NumberPipe, DecimalPipe, PercentPipe, CurrencyPipe} from './pipes/number_pipe';
|
||||
export {UpperCasePipe} from './pipes/uppercase_pipe';
|
||||
export {ProtoPipes} from './pipes/pipes';
|
||||
export {PipeBinding} from './pipes/pipe_binding';
|
||||
|
@ -12,12 +12,5 @@ export {
|
||||
ViewDefinition,
|
||||
DOCUMENT,
|
||||
APP_ID,
|
||||
MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE,
|
||||
EventManager,
|
||||
SharedStylesHost,
|
||||
DomSharedStylesHost,
|
||||
TemplateCloner,
|
||||
ViewType,
|
||||
RenderProtoViewMergeMapping,
|
||||
EventManagerPlugin
|
||||
MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE
|
||||
} from './render/render';
|
||||
|
@ -38,6 +38,9 @@ const REFLECT_PREFIX: string = 'ng-reflect-';
|
||||
export class DomRenderer extends Renderer {
|
||||
_document;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(private _eventManager: EventManager,
|
||||
private _domSharedStylesHost: DomSharedStylesHost,
|
||||
private _templateCloner: TemplateCloner, @Inject(DOCUMENT) document) {
|
||||
|
@ -10,7 +10,4 @@ export * from './dom/compiler/compiler';
|
||||
export * from './dom/dom_renderer';
|
||||
export * from './dom/dom_tokens';
|
||||
export * from './dom/template_cloner';
|
||||
export * from './dom/events/event_manager';
|
||||
export * from './dom/view/shared_styles_host';
|
||||
export * from './dom/template_cloner';
|
||||
export * from './api';
|
||||
|
@ -18,6 +18,9 @@ export class JSONPConnection implements Connection {
|
||||
private _responseData: any;
|
||||
private _finished: boolean = false;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(req: Request, private _dom: BrowserJsonp,
|
||||
private baseResponseOptions?: ResponseOptions) {
|
||||
if (req.method !== RequestMethods.Get) {
|
||||
@ -91,6 +94,9 @@ export class JSONPConnection implements Connection {
|
||||
|
||||
@Injectable()
|
||||
export class JSONPBackend implements ConnectionBackend {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(private _browserJSONP: BrowserJsonp, private _baseResponseOptions: ResponseOptions) {}
|
||||
createConnection(request: Request): JSONPConnection {
|
||||
return new JSONPConnection(request, this._browserJSONP, this._baseResponseOptions);
|
||||
|
@ -92,6 +92,9 @@ function stringifyAux(instruction: Instruction): string {
|
||||
export class ComponentInstruction {
|
||||
reuse: boolean = false;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(public urlPath: string, public urlParams: string[],
|
||||
private _recognizer: PathRecognizer, public params: StringMap<string, any> = null) {}
|
||||
|
||||
|
@ -31,6 +31,9 @@ export class RouterOutlet {
|
||||
private _componentRef: ComponentRef = null;
|
||||
private _currentInstruction: ComponentInstruction = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(private _elementRef: ElementRef, private _loader: DynamicComponentLoader,
|
||||
private _parentRouter: routerMod.Router, @Attribute('name') nameAttr: string) {
|
||||
if (isPresent(nameAttr)) {
|
||||
|
@ -22,12 +22,16 @@ import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
import {DebugElement} from 'angular2/src/core/debug/debug_element';
|
||||
|
||||
export class RootTestComponent extends DebugElement {
|
||||
export class RootTestComponent {
|
||||
_componentRef: ComponentRef;
|
||||
_componentParentView: AppView;
|
||||
debugElement: DebugElement;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(componentRef: ComponentRef) {
|
||||
super(internalView(<ViewRef>componentRef.hostView), 0);
|
||||
this.debugElement = new DebugElement(internalView(<ViewRef>componentRef.hostView), 0);
|
||||
|
||||
this._componentParentView = internalView(<ViewRef>componentRef.hostView);
|
||||
this._componentRef = componentRef;
|
||||
|
@ -16,6 +16,9 @@ export {Type} from "angular2/src/core/facade/lang";
|
||||
|
||||
@Injectable()
|
||||
export class ClientMessageBrokerFactory {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(private _messageBus: MessageBus, protected _serializer: Serializer) {}
|
||||
|
||||
/**
|
||||
@ -31,6 +34,9 @@ export class ClientMessageBroker {
|
||||
private _pending: Map<string, PromiseCompleter<any>> = new Map<string, PromiseCompleter<any>>();
|
||||
private _sink: EventEmitter;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(messageBus: MessageBus, protected _serializer: Serializer, public channel) {
|
||||
this._sink = messageBus.to(channel);
|
||||
var source = messageBus.from(channel);
|
||||
|
@ -12,6 +12,9 @@ import {
|
||||
|
||||
@Injectable()
|
||||
export class ServiceMessageBrokerFactory {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(private _messageBus: MessageBus, protected _serializer: Serializer) {}
|
||||
|
||||
/**
|
||||
@ -33,6 +36,9 @@ export class ServiceMessageBroker {
|
||||
private _sink: EventEmitter;
|
||||
private _methods: Map<string, Function> = new Map<string, Function>();
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
constructor(messageBus: MessageBus, private _serializer: Serializer, public channel) {
|
||||
this._sink = messageBus.to(channel);
|
||||
var source = messageBus.from(channel);
|
||||
|
Reference in New Issue
Block a user