解决方法
使用“controller as”构造时,使用控制器的此范围而不是$scope对象定义属性.所以第二个例子的控制器应该是:
function MyCtrl($scope) { this.items = m; }
在您的示例中,您甚至不需要注入$scope,因为您没有使用它,因此您可以将其削减到更多:
function MyCtrl() { this.items = m; }