Skip to content

Instantly share code, notes, and snippets.

@ironfroggy
Created April 26, 2013 13:19
Show Gist options
  • Save ironfroggy/5467340 to your computer and use it in GitHub Desktop.
Save ironfroggy/5467340 to your computer and use it in GitHub Desktop.
app.controller("MyCtrl", function($scope) {
// from right here, for example,
// where can 'element' come from?
$scope.ctx = element.getContext('2d');
});
<canvas ng-controller="MyCtrl" width=300 height=300></canvas>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment