Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Last active Jan 21, 2016
Embed
What would you like to do?
// Javascript
app.controller("TwoWayController", function($scope) {
$scope.person = {
name: 'Hoang'
};
});
// HTML
<div ng-controller="TwoWayController">
<input ng-model="person.name" />
<p>Hello {{ person.name }}!</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment