这里进出口新的angularTypescript请帮助我如何绑定TextBoxData.Like 在这里,我有两个textBoxt和一个按钮如何文本框的值打至梅索德使用AngularTypescript
<div>
<input type="text" class="form-control" id="txtx1" />
<br />
<input type="text" class="form-control" id="txtx" />
<input type="button" class="btn btn-success" value="Submit" ng-click="GetData()" />
</div>
这里我怎样才能绑定这两个打字稿中的文本框值Like
public class Employeee(Employee ee)
{
}
什么是你想要的实际问题解决?为什么你想在TypeScript中做到这一点?通常视图绑定是最好的方法。见https://angular.io/docs/ts/latest/guide/template-syntax.html –
和ng-click是AngularJS ... – Alex
请建议我如何绑定这两个值像这里我的目标是插入数据 –