腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(1803)
视频
沙龙
1
回答
如何在角子元件选择器之间传递内容
html
、
angular
、
angular-directive
、
angular-components
我试图在一个角度组件选择器中传递数据,比如它是在角材料中完成的,或者MD Bootstrap.Below是一个简单的角材料卡的例子,它显示卡中所包含的选择器之间的内容。输出将类似于这个child.component.htmlchild.component.tsselector: 'app-contai
浏览 0
提问于2019-02-27
得票数 0
回答已采纳
1
回答
在具有多个交叉的组件中选择交叉的根元素
angular
select="[card-title]"></
ng-content
> <
ng-content
select="[card-subtitle]"></
ng-content
> <div class="description"> <
ng-content
se
浏览 1
提问于2017-12-06
得票数 0
1
回答
如何在angular中检测
ng-content
中的多少个组件?
angular
现在我有两个组件 //app-row-two <div x-col><
ng-content
select="[slot=1]"></
ng-content
></div><
浏览 6
提问于2020-08-30
得票数 2
1
回答
为什么projectableNodes是any[][]?
angular
我和你玩过我想知道为什么参数projectableNodes是任意的。不幸的是,到目前为止,这个参数还没有被记录下来。愿你,曼弗雷德
浏览 3
提问于2016-12-29
得票数 7
2
回答
不能将href与routerLink同时用作角中的条件属性。
angular
internalLink : null"></a> 然而,这并不像我所希望的那样有效。
浏览 7
提问于2020-03-03
得票数 1
回答已采纳
4
回答
使用组件作为单元-角8。
angular
、
typescript
、
angular8
、
angular-components
我想用一个组件作为一个项目。<ul class='biblList'> {{ biblCit }}</ul><evt-bibliography-item *ngFor="let biblCit of biblCits"></evt-bibliography-item> 作为一个有棱
浏览 6
提问于2019-12-16
得票数 2
回答已采纳
1
回答
使用@ViewChild获取ng内容组件?
javascript
、
html
、
angular
、
typescript
我创建了一个带有模板的卡片,它使用如下
ng-content
插槽: <
ng-content
select="card-body"></
ng-content
> <<em
浏览 6
提问于2022-11-17
得票数 -2
回答已采纳
1
回答
组件中的Angular2 Html
javascript
、
html
、
angular
我想创建一个类似于模板的组件。例如,不要到处写这段代码: <div class="myHeader" id="headerId"> Title </div></div><my-component ti
浏览 2
提问于2016-09-02
得票数 21
回答已采纳
2
回答
角ng含量的多个选择器
javascript
、
html
、
angular
、
angular-content-projection
我知道有可能有多个具有不同选择器的
ng-content
将内容投影到插槽中。<
ng-content
select="h1"></
ng-content
>我的问题是,是否有可能让多个选择器在相同的实例上
ng-content
,例如。-- this doesn't work --> <<e
浏览 2
提问于2019-11-26
得票数 1
2
回答
条件ng-角4/5的含量
angular
、
angular2-ngcontent
<div></div> <div *ngIf="description.children.length;else newDiv"> <
ng-content
select="[card-body]"></
ng-co
浏览 3
提问于2017-11-20
得票数 14
回答已采纳
1
回答
如何循环通过区段元素来使用ng-内容进行项目
angular
、
typescript
、
transclusion
、
angular2-ngcontent
我正在构建一个步骤,并使用
ng-content
中的"transclusion“来动态抓取步骤标记中的section元素。stepper.component视图的工作方式如下:<
ng-content
select=".two"></
ng-content
> <
ng-content
sele
浏览 9
提问于2019-12-17
得票数 4
回答已采纳
1
回答
在角度上,如何在客户组件或指令中使用模板内容?
angular
我看到类似于角组件,如
ng-content
或material组件所做的事情。不确定这是如何实现的,或者用什么“术语”来获得更好的理解。 任何向正确方向的推进都会受到赞赏。
浏览 1
提问于2022-11-23
得票数 1
回答已采纳
2
回答
如何创建具有两个或多个内容占位符的容器组件?
angular
、
angular-components
我必须开发一个类似于这个组件的可重用组件:它有两个容器部件,可以容纳当时未知的其他组件,主要内容部分和菜单部分:在谷歌搜索时,我发现了一个,它使用
ng-content
指令,但我不知道它是否可以不止一次使用-- WindowComponent --> <h4>Window title</h4><
浏览 4
提问于2018-04-04
得票数 1
回答已采纳
1
回答
带有来宾组件的父子组件树
angular
grandchild没有在模板中包括spinner,但是想要显示它(它使用
ng-content
)。或者,在某个时候,child会想要显示旋转器而不是。 我怎么才能让它起作用?
浏览 2
提问于2016-10-14
得票数 2
回答已采纳
1
回答
得到一个“内容儿童”的高度?
javascript
、
html
、
angular
、
typescript
在中,使用@ContentChildren装饰器检索来自以下布局的@ContentChildren: <
ng-content
></
ng-content
> &
浏览 5
提问于2022-11-17
得票数 1
回答已采纳
1
回答
Angular:检查是否提供了一个
ng-content
插槽
html
、
angular
、
ng-content
我有一个包含多个
ng-content
元素的组件模板: <
ng-content
select="[general]"></
ng-content
> <
ng-content
select=&qu
浏览 3
提问于2020-05-09
得票数 0
1
回答
角2分量
angular
、
angular2-components
我想在组件中使用组件。例如;我想和我的其他组件一起使用这个组件。例如;
浏览 0
提问于2017-06-14
得票数 0
回答已采纳
1
回答
深ng内容选择是可能的吗?
angular
、
angular2-template
、
angular2-ngcontent
、
ng-content
假设我想将这样的标记转换为ng内容: AAA<div aaa bbb></div><
ng-content
select="div[aaa]"></
ng-content
><
ng-content
select="div[aaa]
浏览 0
提问于2018-06-26
得票数 2
2
回答
构件内角
angular
、
ng-template
当一个组件在另一个组件中时,它被称为什么?就像在 <agm-marker [latitude]="lat" [longitude]="lng"></agm-marker>它是如何工作的?
浏览 0
提问于2018-04-09
得票数 4
回答已采纳
1
回答
在nativescript-angular中如何检查<
ng-content
>是否为空?
angular2-nativescript
在我的nativescript-angular项目中,我有一个这样的组件: <Label *ngIf="ngContentIsEmpty">
ng-content
isempty </Label></StackLayout> 现在,我想显示一些内容,如果这个组件的<
ng-content
>是emp
浏览 0
提问于2019-08-11
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Angular开发实践(八):使用ng-content进行组件内容投射
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券