docs: fix testing example (#31120)

PR Close #31120
This commit is contained in:
Kapunahele Wong
2019-06-18 07:59:54 -04:00
committed by Kara Erickson
parent e8d0265c1e
commit 02d98ed823
22 changed files with 113 additions and 70 deletions

View File

@ -1,4 +1,4 @@
import { Component, AfterViewInit, ViewChild } from '@angular/core';
import { Component, AfterViewInit, ViewChild, ElementRef } from '@angular/core';
@Component({
selector: 'sample-canvas',
@ -6,7 +6,7 @@ import { Component, AfterViewInit, ViewChild } from '@angular/core';
})
export class CanvasComponent implements AfterViewInit {
blobSize: number;
@ViewChild('sampleCanvas', {static: false}) sampleCanvas;
@ViewChild('sampleCanvas', {static: false}) sampleCanvas: ElementRef;
constructor() { }