AngularJS Example:

by Gibrain Hernandez

HTML

<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div ng-app>
<p>Name: <input type="file"  ng-change="cambio()" ng-model="name"></p>
    <div ng-controller="TodoCtrl">
         <h1 ng-click="cambio()">List</h1>
          
        <div ng-repeat="t in todos | filter:{ id: '!-1'}">{{t.text}}</div>
    </div>
</div>

CSS

.done-true {
    text-decoration: line-through;
    color: grey;
}

JavaScript

function TodoCtrl($scope) {
console.log("ksksks");
$scope.cambio = function(){
console.log($scope.name)
}
    $scope.todos = [{
        text: 'learn angular',
        done: true,
        id: -1
    }, {
        text: 'build an angular app',
        done: false,
        id: 1
    }];
}