【发布时间】:2020-12-21 12:33:37
【问题描述】:
版本:
-
角度:10.0.10
-
@angular/cli 10.0.6
我使用以下命令安装引导程序
- npm install @coreui/angular --save
- npm install bootstrap
见代码:
app.module.ts
@NgModule({
bootstrap: [AppComponent]
})
registraion.component.cs
import { Component, OnInit } from '@angular/core';
import { BackendserviceService } from '../backendservice.service';
@Component({
selector: 'app-registration',
templateUrl: './registration.component.html',
styleUrls: ['./registration.component.css']
})
export class RegistrationComponent implements OnInit {
columnDefs = [
{ headerName: 'empid', field: 'empid' },
{ headerName: 'username', field: 'username' },
{ headerName: 'empaddress', field: 'empaddress' },
{ headerName: 'password', field: 'password' },
{ headerName: 'country', field: 'country' },
{
headerName: 'Edit',
template:
'<span><i class="fa fa-edit" data-action-type="edit"></i></span>',
}
];
当我点击编辑图标检查时
【问题讨论】:
-
在添加@NearHuscarl 建议i.stack.imgur.com/qbm22.png 后看到这个不起作用@
标签: angular typescript angular-cli ag-grid