使用类型脚本控制器填充网格

时间:2015-06-03 16:12:47

标签: angularjs typescript typescript1.4 typescript1.5

我已经使用typescript和angular js实现了一个控制器并且还在响应中获取数据但是当我尝试将该数据与我的网格绑定时存在一些问题。我已经使用了ng-repeater。

我已将我的控制器在html页面上声明为: -

ng-controller="CustomerCtrl as custom"

我正试图在我的控制器中访问它: -

 ng-repeat="cust in custom.cust_File

而不是

 Full Name: {{cust.Name}}

我不知道问题究竟在哪里......

1 个答案:

答案 0 :(得分:0)

我通过在@hugues Stefanski描述的自定义。$ scope.cust_File中使用cust来解决这个问题。 Thanx很多....