I am building something like an example of a kitchen, except that I need to have several views.
http://fabricjs.com/kitchensink
Business card: front and back
As I edit, I save JSON periodically.
If you want to edit back without reloading the page (because I use AngularJS), how can I erase the current canvas and reload the new JSON?
I am currently loading JSON, you are changing the look of the change, running canvas.clearContext() and reloading the new JSON. This does not work as I expected.
Update
I use the directive to manage this canvas. I created an instance of the directive when JSON was available, and when I tried to update it, for some reason it would not work.
I deleted this and made the directive empty, and now I just load Json through the service. Hooray!
html5-canvas canvas fabricjs
Michael J. Calkins
source share