我正在尝试将bootstrap-table-editable与Angular 6结合使用,但无法正常工作。
<table data-toggle="table">
<thead>
<tr>
<th data-field="value">Value</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of array">
<td data-editable="true">{{item.value}}</td>
</tr>
</tbody>
angular.json:
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"node_modules/bootstrap-table/dist/bootstrap-table.css"
],
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js",
"node_modules/bootstrap-table/dist/bootstrap-table.js",
"node_modules/bootstrap-table/dist/extensions/editable/bootstrap-table-editable.js"
]
package.json:
"dependencies": {
"bootstrap": "^3.3.7",
"bootstrap-table": "^1.12.1",
"jquery": "^3.3.1"
}