I have written scripts to create a whiteboard using canvas inside the template page of AngularJS. Now I need to assign the values of the points[] variable to an AngularJS scope variable.
<script>
var points = [];
</script>
How can I access the points in an AngularJS controller?
scope.points = points;