Search code examples
angularjsjsfiddle

jsfiddle angular not working


I made a jsfiddle here to make angular question: https://jsfiddle.net/b6xgjfwg/

<div ng-controller="AppCtrl">
    Hello {{name}}
</div>
var app = angular.module('app',[]);
function AppCtrl($scope) {
    $scope.name = 'Sally';
}

same as http://jsfiddle.net/thomporter/tcVhN/

But not working. I am new to jsfiddle and help me.


Solution

  • Please see below screen show. You can see that I specified to load my angular in the head (no-wrap) and also reformatted my code to be more "correct"

    changes