腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2685)
视频
沙龙
1
回答
Angular
9+
:
嵌套
的
ng-content
和
ContentChildren
、
、
我试图用
ContentChildren
捕获外部
ng-content
的
内容,但没有成功。</p> <
ng-content
></
ng-content
>}) <
ng-content
>&l
浏览 41
提问于2020-07-14
得票数 0
回答已采纳
3
回答
@
ContentChildren
没有被填充
我有三个组件:应用程序、家长
和
孩子:@Component({ directives: [Parent,Child], }父组件 selector: 'parent', template: '<div><h1>Parent</h1><
ng-content
></<e
浏览 12
提问于2016-01-02
得票数 25
回答已采纳
1
回答
ViewChildern
和
ContentChildern
的
区别以及如何在实际中使用?
我可能对ViewChildren
和
ContentChildren
以及它们
的
实际用法感到困惑。 <
ng-content
></
ng-content
> }) msg() console.logchild1', &l
浏览 1
提问于2016-03-28
得票数 1
回答已采纳
1
回答
Angular
2 @
ContentChildren
在父<
ng-content
>中未填充
、
、
、
发行:问题子组件
的
test组件长度为0,而父组件
的
长度为3。详细守则: Component,
ContentChildren
, Directive
浏览 1
提问于2017-04-25
得票数 5
回答已采纳
1
回答
Angular
2 :
ContentChildren
+QueryList错误
我希望使用
Angular
2中
的
@
ContentChildren
在向导中导航。但是当我使用它时,我有一个错误:"zone.js?fad3:158 Uncaught :无法为"ExtendedWizard“
的
属性”步骤“构造查询,因为查询选择器没有定义。”wizard.component.ts @Co
浏览 4
提问于2016-11-14
得票数 3
回答已采纳
1
回答
Angular
8:通过多个
ng-content
嵌套
的
组件查找问题
、
当我试图查找
嵌套
在子子组件中
的
组件时,我就遇到了这个问题。我已经创建了一个我想要实现
的
示例: selector: 'app-grand-parent', template: '<
ng-content
>
浏览 16
提问于2020-02-17
得票数 1
回答已采纳
1
回答
如何在
angular
中检测
ng-content
中
的
多少个组件?
现在我有两个组件 //app-row-two <div x-col><
ng-content
select="[slot=1]"></
ng-content
></div><
浏览 6
提问于2020-08-30
得票数 2
1
回答
得到一个“内容儿童”
的
高度?
、
、
、
在中,使用@
ContentChildren
装饰器检索来自以下布局
的
@
ContentChildren
: <
ng-content
></
浏览 5
提问于2022-11-17
得票数 1
回答已采纳
2
回答
得到降级
ContentChildren
组件
的
ng2
我有一个ng1应用程序,它使用upgradeAdapter引导并使用降级
的
ng2组件。ParentComponent selector: 'my-app', template: '<h1>My First
Angular
2 App</h1>
浏览 0
提问于2016-04-20
得票数 3
回答已采纳
1
回答
为什么@
ContentChildren
在查询匹配
的
选择器时包含self (this)?
我有一个可以
嵌套
的
组件,它试图查询它
的
子组件。@Component({ template: `[{{this.children.length}}]<
ng-content
></
ng-content
>`export class ContainerComponent { @
ContentChildren
(ContainerComponent) public chi
浏览 0
提问于2016-11-17
得票数 7
回答已采纳
2
回答
Angular
2:实现选项卡
、
我想在我
的
页面上实现选项卡,因此完成了本教程import { Component, OnInit,Input } from '@
angular
/core';active" class="pane"></div>', styleUrls: ['.tab.comp
浏览 7
提问于2016-11-17
得票数 0
1
回答
如何处理ng内容中
的
事件
我在做一个简单
的
步进吴-内容我试过没有运气
的
指令。我想用appStepperNext
和
appStepperBack我把它放进了StepComponent,但是我想处理它步进'@
angular
/core';
浏览 1
提问于2019-03-01
得票数 2
回答已采纳
1
回答
在刷新后保留角2 Tabs
、
、
、
我在制表符功能上工作很好,但我希望在页面刷新时保留所选
的
选项卡。, QueryList, AfterContentInit } from '@
angular
/core'; `export class Tabs implements AfterContentInit { }
浏览 2
提问于2017-08-01
得票数 1
回答已采纳
2
回答
在
Angular
的
ContentChildren
中渲染组件
、
、
这是我
的
组件:import { IconBoxComponent/three-icon-box.component.scss']export class ThreeIconBoxComponent implements OnInit {
浏览 0
提问于2018-03-15
得票数 13
2
回答
以角表示
的
ng内容中
的
查询按钮
我想查询ng内容中
的
按钮。html: <
ng-content
></
ng-content
>ts: ngAfterViewInit(): void { }import { Directive } from '@
angular
其他
的<
浏览 5
提问于2022-11-28
得票数 0
回答已采纳
3
回答
广播到父组件
的
子组件事件
、
、
我想在
Angular
2中实现在父指令中包含子指令
的
通用
Angular
1.x模式,下面是我想要
的
结构。<foo> <bar>B</bar></foo>@Component({ selector:
浏览 1
提问于2016-01-15
得票数 5
回答已采纳
1
回答
如何在角度上使用
ContentChildren
访问
嵌套
元素
ContentChildren
装饰器 tabHeadingList: QueryList<是否可以使用@
ContentChildren
或任何其他方式获得相同
的
结果?TabHeading类 selector: "tab-heading", template: `<li class="tab"><a href=&
浏览 0
提问于2018-12-10
得票数 0
回答已采纳
4
回答
Angular
2:用组件
的
模板替换主机元素
、
、
我是
angular
的
新手,特别是
angular
2
的
新手。我正在尝试编写一个容器组件,其中应该包含子组件。,例如,容器组件 selector: 'my-list', <ul> `export class MyList {子组件: import {
浏览 6
提问于2016-03-01
得票数 34
回答已采纳
1
回答
如何在
angular
4中使用
嵌套
组件?
、
我正在寻找一个解决方案,它将帮助我开发一个
嵌套
组件结构。workSheet [id]="3" [name]="'c'" [data]="333"></workSheet>目前,我在工作簿组件中使用@contentChild,可以访问工作簿中工作表
的
属性工作表模板内容是:如何使应用程序
浏览 0
提问于2018-05-15
得票数 0
回答已采纳
4
回答
如何观察ng内容中输入元素
的
变化
当子组件观察到输入变化时,如何调用父组件
的
函数? </textbox><div class="textbox-wrapper"> 当输入TextboxComponent元素时,在i
浏览 2
提问于2016-04-23
得票数 10
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
前端框架Vue、angular、React的优点和缺点
使用嵌套和自动编程的激光切割机的好处
AngularJS和Angular 2+:一个详细的比较
NET CORE 2.0,ANGULAR 4和MYSQL的第2部分
NET CORE 2.0,ANGULAR 4和MYSQL的第4部分
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券