2
動的なフォームを作成したいと思います。私のコントローラの中に私は
var str = "<input type='text' value='" + $scope.selectedData.code + "' class='form-control' />";
$scope.htmlString = $sce.trustAsHtml(str);
と私のhtmlページで
<div ng-bind-html="htmlString"></div>
文字列を作成し、私は値を取得しますが結合されていません。 私も一緒にお試しください
var str = "<input type='text' ng-model='" + $scope.selectedData.code + "' class='form-control' />";
$scope.htmlString = $sce.trustAsHtml(str);
も動作しません。誰でもこのことができますか?
私はあなたの男を愛して!今完璧に動作します!タイ! – GomuGomuNoRocket
幸せ!!私は、楽しむことができる:) – Aks1357