Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (20 sloc) 478 Bytes
<h2>Sample Data</h2>
<p>
Collection name:
<input #SampleCollName id="sample-collection-name" type="text" value="{{MongoDBCollectionName}}">
</p>
<p>
Sample size:
<input #SampleSize id="sample-size" type="number" min="1" max="10" value="1"/>
</p>
<p>
<button (click)="sampleDocs(SampleCollName.value, SampleSize.value)">Sample Docs</button>
</p>
<p>
<span class="errorMessage"> {{SampleDocError}}</span>
</p>
<div class="json">
<pre>
{{SampleDocResult}}
</pre>
</div>