0
は、私は私のhtmlページにこの要素を持っている:Typescriptのhtmlからこの値を取得するにはどうすればよいですか?
<div class="section-title" id="bladeSectionTitle"
ng-transclude="title">
</div>
私は値が表示された取得したいです。
私はヌルを取得し、私のtypescriptですページ&に次のように試してみました:
var title = document.getElementById("bladeSectionTitle").getAttribute('section-title');
ビューソースが私にこの与える:この例では
<dpn-blade-section is-checkbox-visible="true" is-checked="$component.showAll">
<section-title>
<h4>Show All</h4>
</section-title>
、私が探していられる値を「すべて表示」です。