AngularJS: pre-filling tpl cache

HTML

<script src="http://code.angularjs.org/angular-0.10.5.min.js" ng:autobind></script>

Select:
<a href ng-click="tpl='first.html'">first</a> | <a href ng-click="tpl='second.html'">second</a>
<ng:include src="tpl"></ng:include>

JavaScript

function Main($cache) {
    $cache.data['first.html'] = {value: 'First template'};
    $cache.data['second.html'] = {value: '<b>Second</b> template'};

}

Main.$inject = ['$xhr.cache'];