title: Reset canvas and reload with JSON in Fabric.js
body: <p>I'm building something like the kitchensink example except I need to be able to have multiple views.</p>
  
  <p><a href="http://fabricjs.com/kitchensink" rel="noreferrer">http://fabricjs.com/kitchensink</a></p>
  
  <p>Business Card:
  front and back</p>
  
  <p>As you edit I save the JSON periodically.</p>
  
  <p>When you want to edit the back without reloading the page (because I'm using AngularJS), how do I wipe the current canvas and reload new JSON?</p>
  
  <p>I'm currently loading the JSON, you click change view, I run <code>canvas.clearContext()</code>, and reload the new JSON. This is not working the way I anticipated. </p>
  
  <h2>Update</h2>
  
  <p>I'm using a directive to manage this canvas.  I was making the directive instantiate when JSON was available and when I tried to update it, for whatever reason, would not work.  </p>
  
  <p>I removed that and made the directive initiate itself empty and now I just loadJson via service. Yay!</p>