腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
3
回答
Angular
2
获取
激活的路由参数和父参数
angular
、
angular2-routing
、
angular2-components
如何从父组件和子路由
获取
RouteParams { path: '', redirectTo: 'list', pathMatchUserInfoComponent }, ]]; 在组件
中
export class UserDetailComponent im
浏览 23
提问于2017-01-10
得票数 6
2
回答
在
Angular
App初始化时
获取
初始URL
angular
、
url
SaaS使用URL http://localhost:4200/token=<token>重定向到
angular
应用程序,并且
angular
迅速更改为主组件http://localhost:4200/#我需要
获取
要在代码中使用的<token>的值。如
何在
angular
应用程序
中
复制初始URL?
浏览 0
提问于2021-09-20
得票数 0
4
回答
如
何在
Angular
5
中
使用
ActivatedRoute
?
angular5
、
query-string
、
angular-activatedroute
我正在尝试做与本文中完全相同的事情:当用户第一次访问网站时,
ActivatedRoute
似乎可以用来从URL
中
检索查询字符串值。但是,我不知道需要导入什么才能使用
ActivatedRoute
。谁能确切地指定需要添加到app.module.ts文件和我尝试使用
ActivatedRoute
的component.ts文件
中
的内容吗?这篇文章指定将路由添加到@NgModule:的imports数组
中
。但是,我没有app.routing.
浏览 45
提问于2018-05-04
得票数 12
1
回答
以角度显示基于查询参数的数据
angular
、
angular6
、
query-parameters
我可以在
Angular
中使用查询参数过滤掉数据吗?This.rows是一个数组。我将只显示查询参数为"Pending“的this.rows。我将如何使用queryParams过滤掉它呢?
浏览 0
提问于2018-08-28
得票数 2
回答已采纳
2
回答
如
何在
angular
中
获取
Activatedroute
angular
、
routes
、
angular-ui-router
、
angular-activatedroute
我想要在URL更改时
获取
路由 https://localhost:3200 至 https://localhotst:3200/login 当我尝试使用ActivateRoute但生成的代码不起作用时param.id}}); 在param.id
中
,
浏览 35
提问于2020-07-20
得票数 0
回答已采纳
1
回答
angular
2
ActivatedRoute
显示无法解析Detail_retailer的所有参数
angular
、
typescript
、
routing
我使用的是
angular
js 2.0.0,我通过它传值import {bootstrap} from '
angular
2/users_detail/component" RouteConfig,RouterModule,} from '
angular
2component: Users},
浏览 0
提问于2018-01-09
得票数 0
6
回答
angular
4如何
获取
url参数
angular
、
typescript
我使用的是
Angular
4,我想从我的组件
中
的一个url
中
获取
参数。URL为"“或"”如何
获取
url参数'user','token‘和'picture'?import { Routes, RouterModule, Router,
ActivatedRoute
, RouteSegment, Params, ROUTER_DIRECTIVES } from'@
a
浏览 236
提问于2017-11-03
得票数 7
回答已采纳
5
回答
如何从儿童
中
获取
params url父母id
angular
、
routing
我尝试使用
ActivatedRoute
: console.log(this._route.snapshot.params.id) >> undefined
浏览 1
提问于2018-03-18
得票数 8
回答已采纳
3
回答
Angular
2路由,如何访问url
中
的语言参数
angular
、
url-routing
、
angular2-routing
CustomerComponent },我希望在引导的AppComponent或翻译服务中使用url
中
的语言参数(在本例
中
为lang= 'en‘)。我可以在ShopComponent和CustomerComponent
中
访问这个参数,但在代码
中
没有其他地方。当我在AppComponent
中
输入以下内容时: constructor(private
activa
浏览 0
提问于2016-12-20
得票数 7
2
回答
Angular
2
获取
所有查询字符串
angular
、
typescript
有没有一种自动的方法可以让我在不知道名称的情况下获得地址栏
中
的所有查询字符串?reports?
浏览 0
提问于2017-04-26
得票数 0
1
回答
角2: Azure AD登录重定向URI
typescript
、
angular
、
oauth-2.0
、
azure-active-directory
、
azure-ad-graph-api
但是,在这个示例
中
,它很好地工作,它直接重定向到启动登录进程的主屏幕。我试图弄清楚如何重定向回一个不同的localhost视图,但由于某种原因,我无法让它工作。 "&state=SomeState&nonce=SomeNonce";这还要求您将Azure Active
中
的/路由: import { Component, ChangeDet
浏览 4
提问于2016-07-05
得票数 0
5
回答
如
何在
angular
和express
中
从url
中
获取
参数?
node.js
、
angular
、
express
我有一个网址,看起来像http://www.example.com/idf34he8sf/9iad2hf7usnf。我想要参数idf34he8sf和9iad2hf7usnf 我使用了下面的代码 角度 this.route.paramMap.subscribe(params => { this.embedId= params.get("embedId"); } 在节点中 req.params 和 req.originalUrl
浏览 22
提问于2019-07-08
得票数 0
回答已采纳
1
回答
带参数的
Angular
2 Routerlink *ngIf
javascript
、
angular
、
typescript
、
angular2-routing
我有以下路由器链接,其中包含一个参数:我该怎么做一个*ngIf和一个参数....我尝试了以下几种方法</div>
浏览 5
提问于2017-12-11
得票数 0
回答已采纳
2
回答
具有数字路由的ngOnInit
angular
、
typescript
、
angular2-routing
在我的组件
中
,我声明了ngOnInit代码 alert();当第一次时间路由更改警报时,会触发,但对于其他路由更改,则不会触发。我在想为什么?
浏览 1
提问于2016-12-21
得票数 0
回答已采纳
2
回答
无法从
ActivatedRoute
获取
查询参数
angular
、
angular-ui-router
我在路由模块
中
定义了这样一个路由:当应用程序想导航到警告页面时,调用如下: };在WarningPageComponent
中
,undefined; 现在的问题是,只有type存在于paramMap
中</
浏览 4
提问于2020-12-04
得票数 0
回答已采纳
2
回答
将通配符添加到URL末尾的特定单词之后
regex
、
angular
、
url
、
url-routing
、
wildcard
ten=123456export const Constants = { home: '/', userLogin: '/user
浏览 2
提问于2019-04-04
得票数 0
1
回答
具有唯一ID的
angular
2的路径/链接
forms
、
angular
、
path
我正在使用
angular
2创建一个测验制作/分享网站,但不确定如何分享测验。我正在考虑使用我的每个测验标识符作为URL。测验是使用表单制作的,并以JSON格式保存在docmentdb上。
浏览 0
提问于2017-04-07
得票数 0
1
回答
this.
activatedRoute
.parent在角服务
中
为空
javascript
、
angular
、
angular-material
、
angular-router
、
angular-activatedroute
我无法在角服务
中
访问父对象表单
activatedRoute
,但是它在组件
中
工作得很好。是否可以在服务
中
获取
相同的父对象。import {
ActivatedRoute
} from '@
angular
/router' 组件
中
的: onEdit = ({ studentId })
浏览 2
提问于2020-08-09
得票数 0
2
回答
如
何在
angular
2
中
为新的@router/路由器
获取
RouteParams --似乎不存在
angular
如
何在
angular
2
中
为新的@router/路由器
获取
RouteParams --似乎不存在import {Component} from '@
angular
/core'; moduleId: module.id
浏览 3
提问于2016-06-05
得票数 2
回答已采纳
8
回答
如何从
Angular
2
中
的url
中
获取
查询参数?
typescript
、
angular
我使用
angular
2.0.0-beta.7。当一个组件被加载到像/path?query=value1这样的路径时,它会被重定向到/path。为什么GET参数被删除了?如何保留参数?},]) 那我就不能在TodoListComponent
中
获取
参数了
浏览 73
提问于2016-02-29
得票数 265
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
如何在 JavaScript 中获取 CSS 值
如何在Excel表格中快速获取网页数据?
JS小技巧,如何在JavaScript中获取当前日期
当 Pod 崩溃后如何在报警信息中获取对应的日志信息?
如何在Chrome和Edge浏览器中安装PWA并获取跳转列表
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券