有时候一些 Angular 指令需要很多参数。在我的当前项目中,我遇到了很多不同的格式化代码的方式。
在 Angular 项目中应该使用哪种类型的格式化呢?
在 Angular 项目中应该使用哪种类型的格式化呢?
<abc-table-widget aaa="aaa"
bbbb="bbbb"
widget="tableWidget"
ccc-id="{{ ccc.data.id }}"
ddd-id="{{ ddd.data.id }}"
eee-active="currentTab === TAB_EEE"
behavior="ACCORDION"
resource-type="{{ getResourceType() }}">
</abc-table-widget>
2
<abc-table-widget
aaa="aaa"
bbbb="bbbb"
widget="tableWidget"
ccc-id="{{ ccc.data.id }}"
ddd-id="{{ ddd.data.id }}"
eee-active="currentTab === TAB_EEE"
behavior="ACCORDION"
resource-type="{{ getResourceType() }}">
</abc-table-widget>
3
<abc-table-widget aaa="aaa" bbbb="bbbb" widget="tableWidget"
ccc-id="{{ ccc.data.id }}" ddd-id="{{ ddd.data.id }}"
eee-active="currentTab === TAB_EEE" behavior="ACCORDION"
resource-type="{{ getResourceType() }}"></abc-table-widget>
4
<abc-table-widget aaa="aaa" bbbb="bbbb" widget="tableWidget" ccc-id="{{ ccc.data.id }}" ddd-id="{{ ddd.data.id }}" eee-active="currentTab === TAB_EEE" behavior="ACCORDION" resource-type="{{ getResourceType() }}"> </abc-table-widget>