Is there already a canvas drawing directive for AngularJS out there?
Is there already a directive to draw/paint things on a canvas? So you can implement something like Paint or even something bigger like Photoshop etc., but a very basic example would suffice. I haven't found one in my search and if there's already one that is considered best practice I would like to use it. Else I have to implement one myself. Ok I did one and it is actually pretty easy: app.directive("drawing", function(){ return { restrict: "A", link: function(scope, element){ var ctx = element[0].getContext('2d'); // variable that decides if something should be drawn on mousemove var drawing