How to update object data of "Observable.of(object)"
<p>UPDATED QUESTION:</p>

<p>Well, debuging I noticed that the value is updating only here:</p>

<pre><code>this._homeService.getClientInfo(this.user.customer_uuid).subscribe(
    (res) =&gt; {this._customerService.setCustomer(this.getCustomerFromResponse(res)).subscribe()},
    (err) =&gt; {console.error(err)}
);
</code></pre>

<p>The function getCustomerFromResponse(response) return a customer object, I could also do a new customer right there or whatever I want that the value is passed. But calling the function setCustomer(customer) in the examples of my old post (behind) the customer isn't being passed to the value of the observable. Why?</p>

<p>OLD POST:
I'm working with observables but I don't unsertand them at all. I'm facing NOW this problem, but I have constantly problems. I have this service:</p>

<pre><code>import {Injectable} from "@angular/core";
import {Customer} from "./customer";
import {Observable} from "rxjs/Rx";
import "rxjs/add/operator/map";
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/do';

@Injectable()
export class CustomerService {
  private customer: Customer;
  private customer$: Observable&lt;Customer&gt;;

  constructor() {
    this.customer = new Customer;
    this.customer$ = Observable.of(this.customer);
  }
  setCustomer(customer: Customer) {
    return this.customer$.do(val =&gt; this.customer = val);
  }

  getCustomer() {
    return this.customer;
  }

  getObservable() {
    return this.customer$;
  }

}
</code></pre>

<p>I call getObservable() from a the class app.component in order to update the value eachtime:</p>

<pre><code>this._customerService.getObservable().subscribe(
            res =&gt; {this.customer = res})
</code></pre>

<p>I post now each class:</p>

<p>clients.component</p>

<pre><code>import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { Response } from "@angular/http";
import { User } from '../../model/user';
import { Customer } from '../../model/customer';
import { UserService } from "../../model/user.service";
import { CustomerService } from "../../model/customer.service";
import { ClientsService } from './clients.service';
import { HttpWrapperService } from "../../shared/httpwrapper.service";
import { NotificationsService } from '../../shared/notifications.service';
import { Notification } from '../../shared/notifications.model';
</code></pre>

<p>The method:</p>

<pre><code> customerSelect(customer: Customer) {
    let user = this._userService.getUser();
    user.customer_uuid = customer.uuid;
    this._customerService.setCustomer(customer).subscribe();
    this._userService.setUser(user).subscribe();
    this.router.navigate(['/home']);
  }
</code></pre>

<p>login.component</p>

<pre><code>import {Component, Input, OnInit} from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { Subscription }           from 'rxjs/Subscription';
import { User } from '../../model/user';
import {UserService} from "../../model/user.service";
import { Customer } from '../../model/customer';
import {CustomerService} from "../../model/customer.service";
import {LoginService} from "./login.Service";
import {HttpWrapperService} from "../../shared/httpwrapper.service";
import {AuthService} from "../../shared/auth.service";
import { NotificationsService } from '../../shared/notifications.service';
import { Notification } from '../../shared/notifications.model';
</code></pre>

<p>the method:</p>

<pre><code>ngOnInit() {
    this.sub = this.route.params.subscribe(params =&gt; {
        if (params['flag'] == 0) {
            let nullcustomer = new Customer();
            nullcustomer.name = "";
            this._customerService.setCustomer(nullcustomer).subscribe();
            this._authService.logout();
        }
    });
}
ngOnDestroy() {
    this.sub.unsubscribe();
}
</code></pre>

<p>FYI I'm using angular core 2.0.0 stable release. As I'm always facing problems with observables I would be grate if someone could provide me a good link tutorial just for obserbables for angular2. I search a lot but I can't find a good enought one.</p>