腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(4890)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
2
回答
setTimeOut for
elementRef
<i class="fa fa-check" aria-hidden="true"></i>我在ts中访问它: @ViewChild("saved") public saved:
ElementRef
浏览 5
提问于2017-12-02
得票数 0
1
回答
属性'_
elementRef
‘在'
ElementRef
<any>’类型上不存在
我使用
ElementRef
获取组件,并使用Typescipt手动操作它。但是,虽然我看到_
elementRef
是元素的一部分,但在类型‘
ElementRef
’上不存在错误属性'_
elementRef
‘。我还认为更改它是自动的,但它似乎不起作用。TS@Component({ selector/app.
浏览 4
提问于2020-07-24
得票数 0
1
回答
MatMenu的角度访问
elementRef
Directive({}) constructor(this.host.menuOpened.su
浏览 0
提问于2021-07-22
得票数 3
1
回答
在QueryList中访问
ElementRef
/app.component.css']export class AppComponent { } } 然而,我遇到了这个错误: Element implicitly has an 'any' type because type 'QueryList<
浏览 27
提问于2021-10-26
得票数 0
回答已采纳
1
回答
角
ElementRef
的routerLinkActive
在标题中,我需要得到
ElementRef
的routerLinkActive,以了解我需要在哪里放置一个“墨水条”(例如材料设计标签)在正确的位置。但是,我需要知道在开头哪个是活动元素(例如,如果用户在浏览器中粘贴URL ),有一种方法可以获得
ElementRef
的activeLink
浏览 0
修改于2018-04-18
得票数 3
回答已采纳
2
回答
角4:模拟
ElementRef
我正在努力弄清楚如何模拟注入到组件中的
ElementRef
。我的组成部分如下:import { Component,
ElementRef
} from '@angular/core'; console.log(_
elementRef
浏览 4
提问于2017-12-18
得票数 27
回答已采纳
2
回答
角12 ViewChild
ElementRef
在角的早期版本中,我们只需定义一个viewchild,其元素引用如下现在我们必须在构造函数中初始化它?如果没有默认的本地元素,我们如何为
elementRef
做到这一点?元素引用一个参数 this.fileInput = new
ElementRef
(?); }
浏览 1
修改于2021-08-05
得票数 2
回答已采纳
2
回答
使用
ElementRef
禁用元素
我使用过
ElementRef
来禁用一个元素。//我的viewchild声明//我的构造函数注入 constructorFormatDateService, private render: Renderer2, private apiService: ApiService, private login: LoginService, private <em
浏览 1
修改于2018-07-23
得票数 0
1
回答
ElementRef
未定义
description : string; @ViewChild('knowledgeTextarea') knowledgeTextarea :
ElementRef
浏览 0
提问于2018-11-29
得票数 4
回答已采纳
1
回答
如何获得元素的
ElementRef
?
_
elementref
);这是我在引发事件时的代码。元素考虑的始终是根组件。有什么方法可以在根中找到孩子的元素吗?
浏览 2
修改于2016-01-25
得票数 1
回答已采纳
1
回答
Angular2 getElementsByClassName on
ElementRef
组件中有以下构造函数:然后在我的ngOnInit中:} 触发器:TS2339: Property 'getElementsByClassName' does not exist on type '
ElementRef
我确实尝试过将我的
ElementRef
转换为HTML
浏览 3
提问于2017-03-24
得票数 4
回答已采纳
2
回答
ElementRef
没有style的实例
mouse){} 当发生这种情况时,它会尝试在selectionDiv上调用style,但表示
ElementRef
浏览 21
提问于2017-07-11
得票数 0
回答已采纳
1
回答
HTMLElement与
ElementRef
的比较
我还有另一个类似的参考资料我正试着检查他们的身份证,并以此为基础做点什么。
浏览 1
修改于2018-10-26
得票数 0
回答已采纳
2
回答
什么是视角的
ElementRef
?
你好,我是AngularJs的新手,最近我回顾了一些角码,我看到这样的: @ViewChild('network', {static: false}) el:
ElementRef
new Network(container, data, {});}因此,我感到困惑的是什么是@ v
浏览 2
修改于2020-02-28
得票数 0
2
回答
单击事件后更改
ElementRef
ComponentB)的按钮 { ///this will work fine }fail this.dcl.loadIntoLocation(compon
浏览 7
修改于2016-01-11
得票数 1
回答已采纳
1
回答
角@2.0.0-Beta.0和角@
ElementRef
2.0.0-beta.1中的
ElementRef
我试图将angular2.0.0-beta0更新为角2.0.0-beta 1,但在使用
elementRef
时遇到了问题。在Beta0,一切都很完美!constructor(dcl: DynamicComponentLoader, private
elementRef
:
ElementRef
, this.dynamicComponentLoader.loadIntoLocation(childComponet,
浏览 4
修改于2017-12-14
得票数 0
回答已采纳
1
回答
从子分量角4获取
ElementRef
我正在尝试用
ElementRef
将多个子组件注入父组件,但是当我试图获得子组件html时出了问题。我的孩子部分constructor(private
elementRef
:
ElementRef
) { } this.html= this.
elementRef
.nativeElement;我想在我的父组件中得到那个子HTML var textComponent = new TextStepComponent()
浏览 0
修改于2017-07-11
得票数 0
1
回答
如何模拟传递给方法的
ElementRef
我想为接收
ElementRef
的方法编写一个测试。我没有办法嘲笑
ElementRef
,有人能帮上忙吗?非常感谢!exampleService.service.ts: exampleMethod(elRef:
ElementRef
): stringExampleService; service = TestBed.inject(ExampleService); it('How to mock
浏览 4
提问于2021-06-15
得票数 3
回答已采纳
1
回答
ElementRef
安全风险角2
为什么
ElementRef
是不安全的使用,如果是,我们可以使用什么呢?我一直在使用这个
ElementRef
来查看或查看特定的html标记,然后在初始化之后作为特定的宽度发送,但是如果这打开了安全风险,我将不会使用它,老实说,我不明白为什么Range2团队允许他们的框架中存在这种安全漏洞string = 'app-standard'; @ViewChild( 'buttonW' ) elButtonW:
ElementRef</
浏览 14
提问于2017-03-16
得票数 12
1
回答
从组件实例获取
ElementRef
) { }我正在寻找一种方法,如果有的话,可以从作为@Input属性传递的ThirdParyComponent实例访问
ElementRef
-不幸的是,我不能更改ThirdParyComponent以公开它自己的
ElementRef
。PS:我知道我可以在MyComponent上创建一个方法来设置ThirdParyComponent实例和它的
ElementRef
,但是我想用@Input来简化这个过程。 有什么方法可以做到这一点吗?
浏览 20
提问于2020-03-04
得票数 0
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券