腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
无法
读取
角度
4中
null
的
属性
“
outlets
”
angular
、
angular-router
我有一个Angular 4.3.6项目,其中
的
一个模板片段产生了这个错误。<a [routerLink]="['/article',article?.id]">{{article?.title}}</a>ArticleSpComponent.html:26 ERROR TypeError: Cannot read property '
outlets
' of
null
at router.es5.js:2914
浏览 22
提问于2017-08-28
得票数 22
回答已采纳
2
回答
角6-
无法
读取
空
属性
的
“出入口”
angular
、
angular6
我正在研究角6,当我添加一个没有任何条件
的
路由器链路(*ngIf)时,路由器链接会抛出"Cannot read property '
outlets
' of
null
“,但是当我在特定部分中添加一个条件时(
无法
读取
空
属性
的
“出口”),但<a [routerLink]="['/use
浏览 1
提问于2019-06-21
得票数 1
1
回答
无法
读取
null
角度
测试
的
属性
“”textContent“”
angular
、
typescript
、
testing
、
jasmine
、
karma-jasmine
我有一个使用AppComponent和ProductComponent
的
简单angular应用程序。当我运行ng test命令时,在http://localhost:9876/?List | FailuresTypeError: Cannot read property 'textContent' of
null
http://localhost:9876/_karma_webpack_/nod
浏览 13
提问于2020-09-28
得票数 2
回答已采纳
2
回答
角度
测试:
无法
读取
null
的
属性
“”nativeElement“”
angular
、
integration-testing
、
karma-runner
、
angular-routerlink
我是
角度
测试
的
新手,目前我正在尝试测试这段代码,但我得到了一个关于DOM上引发
的
事件
的
错误:为什么原生元素上
的
单击事
浏览 0
提问于2019-10-15
得票数 3
回答已采纳
1
回答
角度
显示“
无法
读取
null
的
属性
'friends‘”
node.js
、
angular
、
httpclient
嗨,我正在尝试从我
的
nodejs后端获取数据到angular。我在nodejs中得到了以下错误消息 Cannot read property 'friends' of
null
let apiResponse = response.generate(true, `Failed to Find Friends`, 500,
null
}
浏览 13
提问于2019-05-30
得票数 0
1
回答
错误:
无法
读取
null
(
角度
)
的
属性
'classList‘
angular
、
typescript
、
dom
TypeError: Cannot read property 'classList' of
null
我真的不确定我在操作DOM元素时做错了什么。我尝试通过id、class和name获取元素,但仍然收到错误,请参阅我
的
脚本: onDropDown(): void { } 和我
的
html: <aside class="right&
浏览 102
提问于2021-01-18
得票数 1
回答已采纳
2
回答
无法
读取
角度
中
null
的
属性
“”getBoundingClientRect“”
html
、
angular
、
getelementbyid
、
getboundingclientrect
、
offsetheight
getBoundingClientRect().height或this.elementView.nativeElement.offsetHeight获取这个<div class="bundles-wrap enterprise"元素
的
像素高度这是我
的
HTML: <!>{{value.Name}}<
浏览 10
提问于2021-07-15
得票数 0
1
回答
TypeError:
无法
读取
null
(
角度
)
的
属性
“”getFullYear“”
angular
、
function
、
ionic-framework
、
scheduler
、
ionic2-calendar
这会不会是安装it 2-calendar npm包时
的
一个错误?core.js:6479 ERROR TypeError: Cannot read property 'getFullYear' of
null
at CalendarComponent.loadEvents (ionic2-calendar.js:3596) at schedule.page.ts:134 这是我
的
代码为了让函数正常工作,代码中有没有我
浏览 63
提问于2021-08-24
得票数 1
1
回答
Angular2 :路由器和辅助路由
angular
、
routes
、
angular-routing
所以我
的
问题是,在不改变辅助路由
的
情况下,我们如何才能更改主URL?(如果没有辅助,只需转到新
的
URL,如果是辅助
的
,则转到URL +辅助性)。我试过:<a [routerLink]="['contacts', {
outlets<
浏览 6
提问于2016-09-21
得票数 2
2
回答
角度
检索数据问题(
无法
读取
null
的
属性
'uid‘)
angular
我正在制作一个web应用程序,其中我有一个GitHub
的
授权按钮,它可以访问personal GitHub存储库。这些存储库将显示在web应用程序上。然而,这是不起作用
的
。Edit:这是AuthService类。user: Observable<firebase.User>; private _userDetails: firebase.User =
null
_userDetails =
null
;
浏览 7
提问于2018-11-28
得票数 3
1
回答
无法
从API响应()
读取
角度
上
的
cookie()-
无法
读取
null
的
属性
(
读取
'headers')
java
、
angular
、
spring-boot
、
cookies
console.log('Get Session Header: ', res.headers); } 能够查看Postman和Chrome Dev Tools (网络选项卡-响应头)中
的
cookie
浏览 6
提问于2022-09-09
得票数 0
2
回答
角4 routerLink“
无法
读取
空
的
属性
‘出口’”
angular
我有宇宙中最简单
的
routerLink:它使用以下路由定义:突然,它抛出了这个错误: 其他与beers路由相同
浏览 5
提问于2017-10-27
得票数 1
回答已采纳
2
回答
无法
读取
null
角度
反应形式get值
的
属性
' value‘
javascript
、
json
、
angular
、
typescript
this.addEventForm.get('floor_installer.id').value;在开发人员控制台中会显示以下错误:ERROR TypeError: Cannot read property 'value' of
null
这个物体是反作用力
的
角度
形式
的
结果。用于构成表单
的
FormBuilder代码: // FormBuilder const datesGroup = this.fb.group({
浏览 38
提问于2020-03-30
得票数 1
回答已采纳
1
回答
角12数据报警器
javascript
、
angular
、
angular-material
、
datepicker
、
angular12
我试图在
角度
12中使用材料数据报警器,但有错误:对其他数据报警器在
角度
12上工作良好有什么建议吗?
浏览 3
提问于2021-08-19
得票数 8
2
回答
无法
读取
null
的
属性
“
属性
”
javascript
、
html
、
frontend
我有一个关于普通JavaScript
的
问题,以及消除控制台错误
的
最佳实践是什么,说页面上不存在某些元素。现在,我知道了问题所在,JS正在寻找某个类,而该类并不存在于该页面上。所以,我
的
问题是,克服这个问题
的
最佳做法是什么? 我
浏览 1
提问于2018-10-31
得票数 0
回答已采纳
2
回答
TypeError:
无法
读取
null
的
属性
“”TypeError“”:
无法
读取
null
的
属性
“”title“”
angular
、
typescript
解码令牌后,我
无法
获得标题和姓氏以在登录时显示它。它给了我错误"cannot read property title of
null
“。任何在这里输入代码的人都可以在这方面帮助我。console.log(decodedToken); } return
null
浏览 9
提问于2019-09-30
得票数 0
回答已采纳
1
回答
无法
读取
NULL
属性
javascript
、
html
、
web-worker
, ARMED = 2'd1 , BUSY = 2'd3</code></pre>但是,我收到一个错误信息: Uncaught :
无法
读取
空
的
属性
浏览 3
提问于2017-04-04
得票数 0
回答已采纳
2
回答
如何修复
无法
读取
未定义
的
属性
“解聘”?
javascript
、
angular
、
ionic-framework
我用
的
是
角度
和离子框架。我添加了一个加载控制器,但是得到了下面的错误。未处理
的
承诺拒绝:不能
读取
未定义
的
属性
的
“解散”;区域:;任务: XMLHttpRequest.addEventListener:error;值: TypeError:
无法
读取
未定义
的
TypeError
的
属性
“解除”:
无法
读取
未定义
的
属性
<e
浏览 10
提问于2021-06-25
得票数 1
2
回答
带ID不做任何事情
的
角子路由
angular
、
routing
首先,我为这个“低俗
的
”问题道歉,但我已经研究了所有的解决方案,但我还是想不出答案。这在我
的
应用程序中。] { path: 'about', component: UsecasesComponent },]children: [{ path: '
浏览 1
提问于2019-11-19
得票数 0
回答已采纳
2
回答
无法
读取
null
的
属性
‘’
javascript
、
reactjs
、
react-hooks
我正在尝试从API访问一些数据,但是当我访问时,我不能
读取
属性
'5‘
的
null
console.logmy machine <div> </div>} 最初,我将传递
的
数
浏览 3
提问于2020-01-28
得票数 2
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
腾讯会议
活动推荐
运营活动
广告
关闭
领券