Currently experimenting with AngularJS, encountered an error message:
Argument 'Controller' is not a function, got undefined
View the JSFiddle link, along with HTML code:
<h2>Hata's Tree-Like Set</h2>
<div ng-app ng-init="N=3;" ng-controller="Controller">
<input type="range" min="1" max="10" step="1" ng-model="N">
<div class="tree"></div>
</div
Proceeded to define the Controller
function in JavaScript, but it appears to be failing to register for unknown reasons.
function Controller($scope){
$scope.$watch("N", function(){ ... });}