Fixed: Behavior Subject must be array

This commit is contained in:
Sercan Yemen 2017-11-28 10:48:52 +03:00
parent a74c5108fd
commit 4c6ef29e20

View File

@ -10,7 +10,7 @@ import { Subject } from 'rxjs/Subject';
@Injectable() @Injectable()
export class ContactsService implements Resolve<any> export class ContactsService implements Resolve<any>
{ {
onContactsChanged: BehaviorSubject<any> = new BehaviorSubject({}); onContactsChanged: BehaviorSubject<any> = new BehaviorSubject([]);
onSelectedContactsChanged: BehaviorSubject<any> = new BehaviorSubject([]); onSelectedContactsChanged: BehaviorSubject<any> = new BehaviorSubject([]);
onUserDataChanged: BehaviorSubject<any> = new BehaviorSubject([]); onUserDataChanged: BehaviorSubject<any> = new BehaviorSubject([]);
onSearchTextChanged: Subject<any> = new Subject(); onSearchTextChanged: Subject<any> = new Subject();