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:
parent
400486ced7
commit
5dd5bfde72
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue