摘要: Create a reference to this in our controller. angular.module('app').controller('MainCtrl', function ($scope){ var self = this; Remove $scope from our 阅读全文