我正在使用Angular 4,我想将一些对象传递给路由器但不更新查询参数.
user.component.ts
this.router.navigate(["/profile",{
action: 'edit',
user: {id: 1, name: 'test', email: 'test@mail.com'}
}]);
Run Code Online (Sandbox Code Playgroud)
APP-routing.module.ts
{ path: 'profile', component: UserProfileComponent }
Run Code Online (Sandbox Code Playgroud)
用户profile.component.ts
this.route.params.subscribe(params => {
});
Run Code Online (Sandbox Code Playgroud)
有帮助吗?
我有一个带有Tree Data的 ag-grid 。(https://www.ag-grid.com/javascript-grid-tree/)。
我面临的问题是列按字典顺序而不是升序/降序排序。对于数字列,应按最大/最小值排序。这是 JsFiddle 链接:https://jsfiddle.net/pbjqdw6w并查看货币列的行为。
enableSorting: true