diff --git a/modules/@angular/common/src/directives/ng_plural.ts b/modules/@angular/common/src/directives/ng_plural.ts index a34919570f..0f4aa616e3 100644 --- a/modules/@angular/common/src/directives/ng_plural.ts +++ b/modules/@angular/common/src/directives/ng_plural.ts @@ -61,8 +61,7 @@ export class NgPlural { addCase(value: string, switchView: SwitchView): void { this._caseViews[value] = switchView; } - /** @internal */ - _updateView(): void { + private _updateView(): void { this._clearViews(); const cases = Object.keys(this._caseViews); @@ -70,13 +69,11 @@ export class NgPlural { this._activateView(this._caseViews[key]); } - /** @internal */ - _clearViews() { + private _clearViews() { if (this._activeView) this._activeView.destroy(); } - /** @internal */ - _activateView(view: SwitchView) { + private _activateView(view: SwitchView) { if (view) { this._activeView = view; this._activeView.create(); diff --git a/modules/@angular/common/src/directives/ng_style.ts b/modules/@angular/common/src/directives/ng_style.ts index dcedef2f4f..a91f19051e 100644 --- a/modules/@angular/common/src/directives/ng_style.ts +++ b/modules/@angular/common/src/directives/ng_style.ts @@ -32,10 +32,8 @@ import {Directive, DoCheck, ElementRef, Input, KeyValueChangeRecord, KeyValueDif */ @Directive({selector: '[ngStyle]'}) export class NgStyle implements DoCheck { - /** @internal */ - _ngStyle: {[key: string]: string}; - /** @internal */ - _differ: KeyValueDiffer; + private _ngStyle: {[key: string]: string}; + private _differ: KeyValueDiffer; constructor( private _differs: KeyValueDiffers, private _ngEl: ElementRef, private _renderer: Renderer) {} diff --git a/modules/@angular/common/src/directives/ng_switch.ts b/modules/@angular/common/src/directives/ng_switch.ts index 05a4d8bdee..32b3254d05 100644 --- a/modules/@angular/common/src/directives/ng_switch.ts +++ b/modules/@angular/common/src/directives/ng_switch.ts @@ -111,8 +111,7 @@ export class NgSwitch { } } - /** @internal */ - _emptyAllActiveViews(): void { + private _emptyAllActiveViews(): void { const activeContainers = this._activeViews; for (var i = 0; i < activeContainers.length; i++) { activeContainers[i].destroy(); @@ -120,9 +119,7 @@ export class NgSwitch { this._activeViews = []; } - /** @internal */ - _activateViews(views: SwitchView[]): void { - // TODO(vicb): assert(this._activeViews.length === 0); + private _activateViews(views: SwitchView[]): void { if (views) { for (var i = 0; i < views.length; i++) { views[i].create(); @@ -141,8 +138,7 @@ export class NgSwitch { views.push(view); } - /** @internal */ - _deregisterView(value: any, view: SwitchView): void { + private _deregisterView(value: any, view: SwitchView): void { // `_CASE_DEFAULT` is used a marker for non-registered cases if (value === _CASE_DEFAULT) return; const views = this._valueViews.get(value); @@ -181,10 +177,8 @@ export class NgSwitch { @Directive({selector: '[ngSwitchCase]'}) export class NgSwitchCase { // `_CASE_DEFAULT` is used as a marker for a not yet initialized value - /** @internal */ - _value: any = _CASE_DEFAULT; - /** @internal */ - _view: SwitchView; + private _value: any = _CASE_DEFAULT; + private _view: SwitchView; private _switch: NgSwitch; constructor( diff --git a/modules/@angular/common/src/localization.ts b/modules/@angular/common/src/localization.ts index a84e73442a..a6c64c6fa2 100644 --- a/modules/@angular/common/src/localization.ts +++ b/modules/@angular/common/src/localization.ts @@ -67,7 +67,7 @@ export enum Plural { Two, Few, Many, - Other + Other, } /** diff --git a/modules/@angular/common/src/location/location.ts b/modules/@angular/common/src/location/location.ts index 8ff9dc494c..dab13b0087 100644 --- a/modules/@angular/common/src/location/location.ts +++ b/modules/@angular/common/src/location/location.ts @@ -49,16 +49,20 @@ export class Location { _subject: EventEmitter = new EventEmitter(); /** @internal */ _baseHref: string; - /** @internal */ _platformStrategy: LocationStrategy; constructor(platformStrategy: LocationStrategy) { this._platformStrategy = platformStrategy; - var browserBaseHref = this._platformStrategy.getBaseHref(); + const browserBaseHref = this._platformStrategy.getBaseHref(); this._baseHref = Location.stripTrailingSlash(_stripIndexHtml(browserBaseHref)); - this._platformStrategy.onPopState( - (ev) => { this._subject.emit({'url': this.path(true), 'pop': true, 'type': ev.type}); }); + this._platformStrategy.onPopState((ev) => { + this._subject.emit({ + 'url': this.path(true), + 'pop': true, + 'type': ev.type, + }); + }); } /** diff --git a/modules/@angular/common/testing/location_mock.ts b/modules/@angular/common/testing/location_mock.ts index 7b448bf442..5b4d0c9590 100644 --- a/modules/@angular/common/testing/location_mock.ts +++ b/modules/@angular/common/testing/location_mock.ts @@ -18,9 +18,7 @@ import {EventEmitter, Injectable} from '@angular/core'; @Injectable() export class SpyLocation implements Location { urlChanges: string[] = []; - /** @internal */ private _history: LocationState[] = [new LocationState('', '')]; - /** @internal */ private _historyIndex: number = 0; /** @internal */ _subject: EventEmitter = new EventEmitter(); diff --git a/modules/@angular/facade/src/errors.ts b/modules/@angular/facade/src/errors.ts index bafd4e7182..e45d83777e 100644 --- a/modules/@angular/facade/src/errors.ts +++ b/modules/@angular/facade/src/errors.ts @@ -14,15 +14,13 @@ export function unimplemented(): any { * @stable */ export class BaseError extends Error { - /** - * @internal - */ + /** @internal **/ _nativeError: Error; constructor(message: string) { // Errors don't use current this, instead they create a new instance. // We have to do forward all of our api to the nativeInstance. - var nativeError = super(message) as any as Error; + const nativeError = super(message) as any as Error; this._nativeError = nativeError; } @@ -40,11 +38,6 @@ export class BaseError extends Error { export class WrappedError extends BaseError { originalError: any; - /** - * @internal - */ - _nativeError: Error; - constructor(message: string, error: any) { super(`${message} caused by: ${error instanceof Error ? error.message: error }`); this.originalError = error;