小编Sha*_*zmi的帖子

Angular 4:将对象传递给Routes而不更新Query Params

我正在使用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)

有帮助吗?

angular2-routing angular

12
推荐指数
1
解决办法
2万
查看次数

AG-Grid 排序不适用于 TreeData

我有一个带有Tree Data的 ag-grid 。(https://www.ag-grid.com/javascript-grid-tree/)。

我面临的问题是列按字典顺序而不是升序/降序排序。对于数字列,应按最大/最小值排序。这是 JsFiddle 链接:https://jsfiddle.net/pbjqdw6w并查看货币列的行为。

enableSorting: true

sorting ag-grid

5
推荐指数
1
解决办法
2235
查看次数

标签 统计

ag-grid ×1

angular ×1

angular2-routing ×1

sorting ×1