I think that i don't understand something.. Why I see "Undefined" in console?
<script>
function Controller($scope) {
console.log($scope.name);
}
</script>
<body ng-app ng-controller="Controller">
<input type="text" value="3" ng-model="name">
</body>