1
私はangular2を使用しています。データをngSwitchに応じて表示したいだけです。私はangular2を使用しています。単にngSwitchに応じてデータを表示したいです。
<div ngSwitch="employee.data.status">
<div *ngSwitchCase ="-1">
<span>Not started</span>
</div>
<div *ngSwitchCase ="0">
<span>In progress</span>
</div>
</div>
私に何かが不足していますか?
https://angular.io/docs/ts/latest/api/common/index/NgSwitch-directive.html –