I'm trying to declare this user as an array
users = new BehaviorSubject<any>([]);
in my component i'm trying to push the userID
this.Service.users.push(userID);
subscribe it like this
this.Service.users.subscribe(x=>{
});
getting
Property 'push' does not exist on type 'BehaviorSubject'