angular/angular.js — pull request #9766 by samccone (2014-10-23 20:52:06+00:00)
Title: Enable ng-include directive to take a method.

This allows a user to bypass the template lookup much in the same way
that a directive works. if you simply set `template:`

This ability comes in quite handy in the situation where your app is
using precompiled templates to reduce network requests.

Prior to this fix a user had several options to hack around this.

They could define template script tags with the id's matching foo.html
or they could pre-seed the template cache on app.run so that the network
request would not happen.

-------

If you guys are interested in this, I can add tests and docs in a snap.