| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1x 1x 1x 1x 4x 1x | import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { FunctionSelector } from './types';
export interface ISelectable {
select: (...any) => any;
}
@Injectable()
export class NgSelect {
public static state$: Observable<any>;
connect(store: ISelectable) {
NgSelect.state$ = store.select(s => s);
}
}
|