我在 Angular 6 项目中使用 ng2-currency-mask 模块,但是当在输入字段中应用(更改)方法时,它不起作用
这里我使用了输入标签
<input style="text-align:right; width:260px;" currencyMask [options]="{ prefix: 'Rs ', thousands: ',', decimal: '.' }" (change)="addToAllChange($event.target.value)" placeholder="Value" class="form-control"/>
Run Code Online (Sandbox Code Playgroud) 创建控制器并继承ApiController时,我使用的是.net core 2.1。但是在我的控制器方法中,返回类型HttpResponseMessage并给定错误,给出问题标题,这是我的方法
[HttpGet]
[Route("GetAll")]
[AcceptVerbs("Get", "Post")]
public HttpResponseMessage SelectCAllCustomers()
{
try
{
return Request.CreateResponse<List<Customer>>(HttpStatusCode.OK, customerDetailsRepository.FindAll("SelectAllCustomers").ToList());
}
catch (Exception ex)
{
return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex);
}
}
Run Code Online (Sandbox Code Playgroud) 我使用了 ng-select 选项菜单,但我想禁用或删除它的关闭按钮如何执行此操作。在这里我使用了代码`
<ng-select id="CompanyID" [(ngModel)]="CompanyId" placeholder="-- select an option --">
<ng-option disabled selected value> -- select an option -- </ng-option>
<ng-option *ngFor="let company of Company" [value]="company.Company_ID" [disabled]="true">{{company.Name}}</ng-option>
</ng-select>`
Run Code Online (Sandbox Code Playgroud)