Call angular js from legacy code
// Source: http://stackoverflow.com/questions/10490570/call-angular-js-from-legacy-code
var scope = angular.element($('#todoList')[0]).scope()
// The original behavior of click will add up a variable with 1 and show it on the view, but it fact it doesn't update the veiw until
// user click the UI to trigger this function
scope.clikc();
// If I do it in this way, the result will the same with my expect
scope.$apply(function() {
scope.click();
});