I'm trying to use the ControllerAs in Template but result is blank. the construct of my controller is like:
app.controller("MyController",function(){
this.result=getResult();
this.gridOptions={data:'result'};
});
I'm using this controller as:
<div ng-controller="MyController as myCtrl">
<div ng-grid="myCtrl.gridOptions"></div>
</div>
Thanks.