这是我现在拥有的内容:
index.html
<div ng-app>
<h2>Todo</h2>
<div ng-controller="TodoCtrl">
<button class="btn btn-danger" ng-click="start()">Start</button>
</div>
</div>
function TodoCtrl($scope) {
$scope.start = function() {
};
}
当按钮被点击后,我应该在$scope.start
函数中填入什么内容,以便使按钮的颜色变为黄色。