私は、角度ui-bootstrapのバージョン0.14.2を使用しています。私はpopoverにラインリターンを表示できませんでした。 私はポップオーバー-htmlのディレクティブを使用し、そして、そのようなuib-popover-htmlは自分のhtml文字列を受け付けません
Limite inférieure<br>Limite supérieure
として文字列は、それが次のエラーを与える:
Lexer Error: Unexpected next character at columns 41-41 [é] in expression [<div>Approchant des limites<br>Limite supérieure: 34:12<br>Limite inférieure: -34:12</div>].
私は$のsce.trustAsHtml呼び出しで私の文字列をラップしようとしたが、それはdidnのものを変えないでください。ここで
は、以下のよう$sce.trustAsHtml
を使用して私のためにplunker http://plnkr.co/edit/3JSly1anPBUiGyqBcsD1
ありがとうございます。これは素晴らしいですが、私は構文を取得しません。なぜこれは機能しませんか? $ scope.getPopoverContent = function(入力){ varコンテンツ=入力; return $ sce.trustAsHtml(content)); } – iCediCe
これはこの問題と回避策のためです。https://github.com/angular/angular.js/issues/3932 – sheilak
ありがとうございます。それは役に立ちました。 – iCediCe