2016-04-25 59 views

回答

1

HTML:

<div ng-bind-html="getText()"></div> 

控制器:

$scope.getText = function(){ 
    var new = $templateCache.get('isnew.html'); 
    return 'My product ' + new; 
} 
+0

你能解释一下你的答案位? – Sampath

+0

我不能上班 –

+0

最近我会提供一个蹦床 – MarkoCen