title: KnockoutJS - Rebinding ViewModel
body: <p>I want to switch a object in a viewModel with an other, with the same type (e.g Person). If i do this:</p>
  
  <pre><code>var personViewModel = function (person) {
    var self = this;
  
    self.id = person.id;
    self.firstName = ko.observable(person.firstName);
    self.lastName = ko.observable(person.lastName);
    self.addresses = ko.observableArray(contact.addresses);
  
    self.removeAddress = function (address) {
    self.addresses.remove(address);
   }
  }
  </code></pre>
  
  <p>and bind it with:</p>
  
  <pre><code>ko.applyBindings(new personViewModel(person), $("#person")[0]);
  </code></pre>
  
  <p>it works great on the first time, but if i bind it with a other object on a second time, the first binding will not disappear.</p>
  
  <p>How can i switch easily the object person in my viewModel?</p>