Displaying input values of a form in a table using angularJs

I have a form to input the name and then when I click the submit button the input value should be displayed in the table. please find the below code that I wrote.


<body ng-controller="myController">
<form ng-submit="addRow()">
<input type="text" ng-model="name"/>
<input type="submit" value="value"/> 

<tr ng-repeat="record in records">
<td>{ {record.name} }<td/>


$scope.addRow = function()
$scope.records.push({'name': $scope.name});

But the output table cell shows as { {record.name} }. I want to print the name which I am typing in the text box

Source: AngularJS