29 lines
662 B
TypeScript
29 lines
662 B
TypeScript
import { ViewArray } from './view-array';
|
|
import { ViewArrayImpl } from './view-array.impl';
|
|
|
|
|
|
/**
|
|
* Factory for creating ViewArray instances.
|
|
*/
|
|
export class ViewArrayFactory {
|
|
|
|
private ADDITIONAL_ENTRIES: number = 20;
|
|
|
|
/**
|
|
* @param $interval Angular $interval service.
|
|
* @return viewArrayFactory A factory for creating ViewArray objects.
|
|
*/
|
|
static $inject = ['$interval'];
|
|
constructor(private $interval: ng.IIntervalService) {
|
|
|
|
}
|
|
|
|
/**
|
|
* Create a new ViewArray object.
|
|
* @return viewArray New ViewArrayImpl instance.
|
|
*/
|
|
public create(): ViewArray {
|
|
return new ViewArrayImpl(this.$interval, this.ADDITIONAL_ENTRIES);
|
|
}
|
|
}
|
|
|