Skip to content

Instantly share code, notes, and snippets.

@ktsosno
Created June 24, 2014 04:30
Show Gist options
  • Save ktsosno/e3892de42a32aaa0d7a0 to your computer and use it in GitHub Desktop.
Save ktsosno/e3892de42a32aaa0d7a0 to your computer and use it in GitHub Desktop.
'use strict';
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope){
$scope.logResult = function(){
console.log($scope.input);
}
});
<div ng-controller='myCtrl'>
<div>
<input type="text" ng-model="input.weird" id="inputField" fill-input ng-keyup="logResult()" />
</div>
</div>
Enter your name: <input type="text" ng-model="name" value=heysdf></input>
<p>Hello heysdf!</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment