腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
Angular
6-
使用
filter
方法
无法
读取
null
的
属性
、
、
这是
angular
的
新手,所以这可能是一个简单
的
问题! this.myService.getPersons().subscribe(persons => { this.personsWithHouse = persons.
filter
,并将房子里
的
所有人保存在一个变量中。我一直在找"cannot read property "ID" of
null</em
浏览 1
提问于2018-08-28
得票数 0
回答已采纳
2
回答
Javascript .
filter
() ->
无法
读取
null
的
属性
“”X“”
、
有没有更好
的
方式来写这行?var tracks = responseJSON.items.map((item) => item.track).
filter
((item) => item.preview_url !=
null
) 我经常收到这样
的
错误:"TypeError: Cannot read property 'preview_url' of
null
" 我想这是因为.map()返回了一个空数组,但如果是这样的话,
filter
()不
浏览 18
提问于2020-12-25
得票数 0
回答已采纳
2
回答
Angular
-
无法
读取
null
的
属性
'length‘“
、
、
、
我
的
component.cs如下: import { Component, VERSION } from '@
angular
/core'; selector: 'my-app',}) export class A
浏览 29
提问于2020-07-09
得票数 0
回答已采纳
2
回答
Angular
-
无法
读取
null
的
属性
'sort‘
、
我正在对一些数据
使用
排序
方法
,据我所知,在实际数据进入之前,排序是“激活
的
”,尽管它可以工作,但它在控制台中留下了一些错误:ERROR TypeError: Cannot read property'sort' of
null
.firstName }} </div> </ng-container> 有没有什么好地方可以让我移动排序函数,这样它就不会给出
null
输出?
浏览 7
提问于2019-08-07
得票数 0
回答已采纳
3
回答
Angular
TypeError:
无法
读取
null
的
'required‘
属性
、
我有一个简单
的
输入表单,如下所示 }TypeError: Cannot read property
浏览 16
提问于2021-05-27
得票数 0
回答已采纳
10
回答
Angular
2
无法
读取
null
的
属性
'config‘
、
我在
Angular
2上遇到了一个问题。当我想启动服务器时,会得到这样
的
结果:Cannot read property 'config' of
null
at Class.run (C:\Users\Damien\Desktop\application\node_modules\@angul ar\cli\tasks\serve.js:22:63) at check
浏览 1
提问于2017-03-16
得票数 31
1
回答
TypeError:
无法
读取
null
angular
的
属性
“form”
、
、
我在我
的
应用程序中实现了嵌套路由,所以我在嵌套组件中创建了嵌套路由模块,然后导入模块和声明组件 但出现错误:
无法
读取
null
的
属性
'form‘....我也导入了表单模块。
浏览 10
提问于2019-04-06
得票数 0
2
回答
Angular
TypeError:
无法
读取
null
的
属性
'users‘
、
我有一个组件,它通过@Input()装饰器接收关于组
的
数据。我
的
目标是在组件初始化期间基于来自组数组
的
数据创建一个新
的
对象数组。以下是我
的
TS组件部分: import { Component, OnInit, Input } from '@
angular
/core'; import {Group} from "@models/: { user: number; permissions: number; }) => ({id: a.
浏览 25
提问于2020-06-25
得票数 0
2
回答
无法
读取
null
| ionic &
angular
的
属性
“”bindingStartIndex“”
、
test1是我
的
angular
库,appOne & appTow是我
的
ionc+
angular
应用程序。我想在我
的
所有应用程序中共享test1库。但我不能这么做。请帮帮我 { "compilerOptions": {
浏览 0
提问于2020-05-30
得票数 0
2
回答
从
angular
8升级到
angular
9时,
无法
读取
null
的
属性
'flattenedMappings‘时出错?
、
、
从
angular
8升级到
angular
9时,
无法
读取
null
的
属性
'flattenedMappings‘时出错
浏览 1
提问于2020-02-27
得票数 0
1
回答
角2管-data没有被传递到变换
方法
、
、
、
我正在尝试实现一个非常简单
的
管道,它从*ngFor获取数据,然后执行一些操作,但是当我执行data.
filter
()时,它抛出一个错误“
无法
读取
未格式化
的
属性
筛选器”import { Pipe, PipeTransform } from '@
angular
/core'; expo
浏览 2
提问于2017-04-11
得票数 0
回答已采纳
1
回答
TypeError:
无法
读取
null
的
属性
(
读取
'scrollHeight') |
Angular
11
、
我真的希望你们中
的
一些人能帮助我解决这个令人费解
的
问题。我需要页面的scrollHeight,但我只得到了其中
的
1/3。console.log(this.dataScroll.nativeElement.scrollHeight)分析DOMSrollable.nativeElent,scrollHeight
的
实际大小是所以,
使用
上面的函数我不能向下,因为滚动停止在1177px。 这是我正在处理
的
内容
的
抽象(我
的</
浏览 1
提问于2021-11-28
得票数 0
2
回答
TypeError:
无法
读取
null
的
属性
“dispatchEvent”
、
、
Angular
中
的
一个编写
的
emit
方法
测试用例现在面临一个问题是TypeError:
无法
读取
null
的
属性
'dispatchEvent‘。 expect(component2.changeevent.emit).toHaveBeenCalled();TypeError:
无法
读
浏览 35
提问于2019-07-10
得票数 1
1
回答
vuejs搜索筛选器"TypeError:
无法
读取
null
的
属性
'
filter
‘“
"TypeError:
无法
读取
null
的
属性
'
filter
‘“ 我写
的
代码如下所示。<template> <div class="
filter
-container"> <el-input :placeholder="TCarama" v-model="se
浏览 35
提问于2019-03-07
得票数 1
1
回答
提交筛选器返回不能
读取
属性
'indexOf‘
的
null
、
、
、
、
我需要在objects
属性
数组中添加用于子字符串
的
PipeTransform。当过滤器被命名为,时,我
使用
的
是lodash,它会很好,而且工作起来很有魅力。但是当我将name
属性
更改为另一个
属性
时,比如title。它
的
返回: import * as _ from 'lodash&
浏览 4
提问于2017-08-12
得票数 0
回答已采纳
1
回答
将模拟路由器用于测试床时出现根未定义错误
、
、
、
、
升级
angular
/primeng包从
6-
>7,现在一些单元测试失败。当我尝试为测试床提供自己
的
模拟路由器时,我一直收到“
无法
读取
属性
'root‘of undefined’”
的
提示。
使用
相同
的
包-锁降级可以解决这个问题,但是我需要升级,并且不确定如何在不能在模拟中设置路由器url/事件
的
情况下测试ngOnInit。我正在尝试测试以下内容: ngOnInit() { thi
浏览 25
提问于2019-09-08
得票数 1
回答已采纳
1
回答
无法
在
angular
4中检查对象中不存在
的
字段
我有一个
angular
4应用程序,我试图插入一个参数,如果它存在的话。但我一直收到这样
的
信息: 错误TypeError:
无法
读取
null
的
属性
'item‘ 我
使用
的
对象实际上是: contact: { item: string,_id: string} 下面是我检查'item‘值是否存在
的
方法
: this.contact
浏览 9
提问于2018-12-19
得票数 0
回答已采纳
2
回答
TypeError:
无法
读取
null
的
属性
“
方法
”
、
、
、
、
我正在开发一个非常基本
的
erc721令牌,
使用
react和web3来创建dapp。我创建了一个箭头函数来创建令牌,但是我一直收到一个错误,当我试图创建一个新
的
令牌时,没有定义
方法
.我仍然是一个初学者,所以我道歉,如果有任何新手
的
错误。/App.css"; state = {account: '', contract:
null
, totalSupply:0, colorscolors
浏览 5
提问于2020-05-27
得票数 1
回答已采纳
3
回答
Angular
6: TypeError:
无法
读取
null
的
属性
“”scrollIntoView“”
、
、
、
我尝试在
angular
6中测试scrollIntoView(),得到这个错误--> TypeError: Cannot read property 'scrollIntoView' of
null
规格
浏览 179
提问于2019-10-24
得票数 2
回答已采纳
1
回答
Angular
Jasmine TypeError:
无法
读取
null
的
属性
“”transform“”
、
、
、
、
我正在尝试测试一个带有星形
的
管道,但是我得到了TypeError:
无法
读取
null
的
属性
'transform‘。 import { StarsPipe } from '.': 5 }, { 'stars': 3 } starPipe =
null
import { P
浏览 17
提问于2020-01-09
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
巧用Optional摆脱NullPointExcept的折磨
赶紧使用Optional吧!
如何用 Karma,Jasmine,Webpack 测试 UI 组件系列(二)Angular测试用例篇
JSP第四篇EL表达式介绍、获取各类数据、11个内置对象、执行运算、回显数据、自定义函数、fn方法库
Socket编程及mina框架简单示例
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券