是否可以包含一个文件作为ionic-view的“标题”?我一直试图将它解析为'<span class="title" ng-include src="'+"./headerIcons.html"+'"></span>',但离子似乎在它进入DOM之前剥离了所有的标签。我是不是遗漏了什么,或者这是不是目前不可用?
发布于 2014-04-24 21:33:30
我已经使用最新版本做到了这一点,并且它是有效的:
<ion-view hide-back-button="true" title="{{title}}">在我的控制器里我有
$scope.title = '<img class="logo" src="img/logo.png"/>';希望能有所帮助
https://stackoverflow.com/questions/23252461
复制相似问题