Angular: Empty Fiddle
http://angularjs.org/
HTML
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-app="myApp">
<div ng-controller="MyController">
<input ng-model="name" size='10' />
Hello, {{name}}!
</div>
</div>
JavaScript
angular.module('myApp', []);
angular.module('myApp')
.controller('MyController', [
'$scope',
function MyController($scope) {
$scope.name ="how to debug";
console.log($scope);
}
]);
//var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});