我正在尝试使用该组件<ng2-smart-table>
。我确实做到了,但是我需要在用户单击页面或列进行排序后刷新数据,有什么方法可以捕获这些事件并刷新数据?
table.component.html
<ng2-smart-table
[settings]="settings"
[source]="characters">
</ng2-smart-table>
Run Code Online (Sandbox Code Playgroud)
表.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable()
export class TableService {
constructor(private http: HttpClient) { }
url = 'http://localhost:4000';
getCharacters() {
return this
.http
.get(`${this.url}/characters`);
}
}
Run Code Online (Sandbox Code Playgroud)
表.interface.ts
export interface Table {
ticket: String;
title: String;
state: String;
owner: String;
age: String;
priority: String;
}
Run Code Online (Sandbox Code Playgroud)
table.component.ts
import { Component, OnInit } from '@angular/core';
import { TableService } from './table.service';
import { Table } from './table.interface'; …
Run Code Online (Sandbox Code Playgroud) 我试图在visual studio中创建一个项目,我在选择WebApi项目后选择了个人用户帐户选项,现在在VS 2019中它似乎与以前有很大不同,现在要求了一些参数,谁能给我一些例子如何配置它?
它在询问:
Domain Name
Application ID
Sign-up or Sign-in Policy
Run Code Online (Sandbox Code Playgroud)
默认情况下,它像唯一的选项一样被选中:
Connect to an existing user store in the cloud
Run Code Online (Sandbox Code Playgroud)