Test

by spencerooni

HTML

<body ng-app>
    
    <div ng-controller="BasicController">
        
        <input type="text" class="form-control" ng-model="texts" ng-change="type()"/>
        
        
        {{ texts }}
    </div>
</body>

JavaScript

function BasicController($scope) {
    
    $scope.type = function() {
        console.log($scope.texts);
    };
}