Ng-include for title

Is it possible to include a file as the ‘title’ of an ionic-view? I’ve been trying to resolve it to '<span class="title" ng-include src="'+"./headerIcons.html"+'"></span>', but Ionic seems to be stripping out all the tags before it goes to the DOM. Am I missing something or is this not currently available?

I think you’re going to have a tough time getting Ionic to work with that as an include.

Why not try it as a directive instead.

Here’s a working example :