mhevery/angular.js — comment on commit 081663eb94079bff63c85234e3e6bda632bbe440
File: src/service/compiler.js line 419
By IgorMinar:

this suggests that you do something like:

$compile(el)(scope);
scope.$apply();

I think that this is wrong, we should push for the following syntax:

scope.$apply(function() {
$compile(el)(scope)
});

We should preach a simple rule: Magic happens as long as you are within the scope of an`$apply`. That should be one of our zen of angular maxims. Don't tell people about $digest etc. it's too low-level