mhevery/angular.js — comment on commit 31de91754c1676b8a8cf7eaad59ffc89ca6d8bd7
File:  line 0
By mhevery:

As discussed this AM I want this syntax

angular.injector('NG', 'MyApp')(function($rootScope, $compile){
$compile(document)($rootScope);
$rootScope.$apply();
});

if we did not have that we would have:

angular.injector('NG', 'MyApp').invoke(null, function($rootScope, $compile){
$compile(document)($rootScope);
$rootScope.$apply();
});

the added benefit is that the injector can delay the execution of the main function until it resolves the dependencies, which may not be possible with the invoke.

So it is not quite the same as what we had a year ego, but it is similar.