title: Reusing Knockout.js ViewModels
body: <p>Hi there i'm building multipage application with Knockout.js and i'm facing a problem writing too much duplicated code..</p>
  
  <p>As example in one of my views i have:</p>
  
  <pre><code>var personVm = function {
  
     //properties here
  
  }
  
  personVm.prototype {
  
    //extensions &amp; methods here
  
  }
  </code></pre>
  
  <p>And at some point i have to use the same ViewModel in some other view.. So i end up duplicating code..</p>
  
  <p>I searched for solutions and require.js is the most common.. But in my case require.js is not suitable and i can't use it. So i will be glad if some one shares some ways to deal with this problem.</p>
  
  <p>Update:</p>
  
  <p>To clear more my question i need some kind of container from which i can grab instances of given ViewModel for my differen views ( which i get from asp.net )</p>