docs(aio): remove "_" from private property name

follow best practices from the documentation: https://angular.io/guide/styleguide#properties-and-methods
This commit is contained in:
Michael 2017-06-17 01:58:40 +02:00 committed by Matias Niemelä
parent 400486ced7
commit 5dd5bfde72
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ export class AdBannerComponent implements AfterViewInit, OnDestroy {
subscription: any; subscription: any;
interval: any; interval: any;
constructor(private _componentFactoryResolver: ComponentFactoryResolver) { } constructor(private componentFactoryResolver: ComponentFactoryResolver) { }
ngAfterViewInit() { ngAfterViewInit() {
this.loadComponent(); this.loadComponent();
@ -39,7 +39,7 @@ export class AdBannerComponent implements AfterViewInit, OnDestroy {
this.currentAddIndex = (this.currentAddIndex + 1) % this.ads.length; this.currentAddIndex = (this.currentAddIndex + 1) % this.ads.length;
let adItem = this.ads[this.currentAddIndex]; let adItem = this.ads[this.currentAddIndex];
let componentFactory = this._componentFactoryResolver.resolveComponentFactory(adItem.component); let componentFactory = this.componentFactoryResolver.resolveComponentFactory(adItem.component);
let viewContainerRef = this.adHost.viewContainerRef; let viewContainerRef = this.adHost.viewContainerRef;
viewContainerRef.clear(); viewContainerRef.clear();