腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
Angular
ngIF
在
组件
内部
无法
正常
工作
angular
、
ionic-framework
、
angular6
、
angular5
、
angular8
我有一个名为header的
组件
,但在它里面,我的
ngIf
不
工作
,我不知道为什么…… header.ts @Input() subTitle:string; //this *
ngif
does not work, if its'yes' it hide the element and i
浏览 35
提问于2020-03-25
得票数 0
2
回答
Angular
2- *
ngIf
使用else块会给我“
无法
绑定到'ngIfElse'",但*
ngIf
不使用else块可以
工作
angular
、
angular-ng-if
直接来自
angular
.io的示例对我不起作用:show = {{show}}<div *
ngIf
="show; else elseBlock">Text to show</div><template #elseBlock>Alternate t
浏览 17
提问于2017-01-30
得票数 6
1
回答
*
ngIf
取决于另一个div -
Angular
的可见性
html
、
angular
: <img id="{{i}}_unlockedImage" *
ngIf
/assets/icons/unlocked_link.png" height="48" width="48"> <img *
ngIf
="doc
浏览 8
提问于2019-11-10
得票数 0
1
回答
Angular
9.0.5不能绑定
ngIf
和ngFor
angular
我已经导入了CommonModule和BrowserModule,
在
我的一个
组件
中它
工作
得很好,但当我试图在其他
组件
视图中执行*
ngIf
时,它不
工作
,谷歌控制台显示此警告core.js:8046
无法
绑定到'
ngIf
‘,因为它不是' div’的已知属性(因为
在
div中我使用了*
ngIf
)。我假设这是
angular
版本,但我还没有解决方案。
浏览 0
提问于2020-06-09
得票数 0
1
回答
Angular
6不调用ngClass
css
、
angular
、
typescript
import {Component, Input, OnInit} from '@
angular
/core'; selector: 'app-bloco-lateral'[ngClass]="{'bloco-lateral--aberto':flagBlocoLateral}"> <div class="bloco-lateral__conteudo" *
ngIf
如果我
在
<em
浏览 14
提问于2019-01-15
得票数 1
回答已采纳
1
回答
离子4角模板与异步管道绑定到可观察对象
angular
、
ionic-framework
我正在将一个旧的离子应用程序从V2移动到V4-alpha,并且
无法
使用异步管道
在
模板中绑定到可观察对象。当一个元素上的*ngFor嵌套在另一个带有*
ngIf
的元素中时,就会出现这个问题。不使用*
ngIf
时,该表显示
正常
,但包含*
ngIf
时不显示数据表,用于
在
不同数据表之间切换。
在
组件
中:this.indLbdP
浏览 1
提问于2018-06-09
得票数 0
1
回答
Bulma表行不跨全宽
css
、
angular
、
bulma
我的
angular
7应用程序中有一个is-fullwidth Bulma表,它
工作
得很好。但是现在我需要在每一行中添加一个角度
组件
,而td标记位于该
组件
内部
。]="row"> </tr></table><td> <div *
ngIf</
浏览 9
提问于2019-08-13
得票数 0
回答已采纳
3
回答
Angular
4:从服务返回承诺进入无限循环
angular
、
promise
、
karma-jasmine
、
es6-promise
我正在学习
在
Angular
4中使用Jasmine测试异步代码。 return Promise.resolve(!!localStorage.getItem('token'));并在
组件
的方法
内部
订阅此promise this.title = 'app'; });<em
浏览 0
提问于2018-07-21
得票数 0
1
回答
带有选择器的ng内容中的条件复制温度
angular
、
angular-template
、
ng-content
我有一个
组件
,它根据客户端设备大小切换
组件
的模板。
组件
代码是:import {BreakpointObserver, Breakpoints} from '@
angular
" select="mobile"></ng-content> <ng-content *
ngIf
="!,
浏览 0
提问于2018-04-28
得票数 1
回答已采纳
2
回答
无法
通过
Angular
中的布线显示
组件
javascript
、
angular
、
angular-routing
、
angular-components
我有3个
组件
: A、B和C。我想在
组件
A中显示一个名为"Component B“的按钮。单击该按钮后,它将显示B
组件
,并带有一个链接"Component C”。单击链接时,它应该显示c
组件
,其中显示"C
组件
工作
“ 应用程序模块是: import { BrowserModule } from '@
angular
/platform-browser'; import{ NgModule } from '@<
浏览 18
提问于2020-07-03
得票数 1
回答已采纳
1
回答
角:共享模块未找到Input()属性中使用的依赖类
angular
、
angular-module
在
组件
被声明不止一次的过程中,我遇到了问题,所以我将这些副本分解到一个共享模块中。import {Component, OnInit, Input} from '@
angular
/core';import
浏览 2
提问于2017-07-12
得票数 0
回答已采纳
4
回答
在
video.js上安装
angular
2
angular
、
video.js
我正在使用video.js
在
我的
angular
2 vidoes上
工作
,但
无法
使它
工作
。我
在
索引文件中使用video.js CDN。rel="stylesheet">我有一个模板文件 <video *
ngIf
中使用ng
浏览 2
提问于2017-06-09
得票数 3
回答已采纳
1
回答
Angular
9 IVY延迟加载的
组件
绑定不起作用
angular
、
angular-ivy
像
ngIf
,ngClass,ngStyle这样的指令
在
延迟加载的
组件
中不起作用(
在
Angular
9中引入)。我设法让它
工作
的唯一绑定是:[style.color]="color"。只要没有绑定或者只有[style.color]="color"这样的简单绑定,延迟加载webpack js包就可以很好地
工作
。延迟加载的
组件
没有
在
NgModule中声明,它是这样加载的 async lazy1()
浏览 29
提问于2020-04-13
得票数 4
2
回答
调用角滑块内的子
组件
javascript
、
angular
、
typescript
我创造了这个滑块HTML
组件
: <ng-container><button class="btn ansbtn" (click)="plusSlides(1)">Next</
浏览 7
提问于2022-06-15
得票数 2
回答已采纳
2
回答
角4.删除构造函数中基于if的
组件
javascript
、
angular
我想增加对
组件
的保护。如果用户没有查看此
组件
的权限,则不会呈现该
组件
。有没有一种方法可以告诉
组件
根本不呈现?
浏览 0
提问于2018-01-22
得票数 3
回答已采纳
1
回答
Ag-Grid :
无法
读取未定义的属性“api”
angular
、
ag-grid
、
ag-grid-ng2
我试着
在
onPaginationChanged和onGridReady上调用这两个api方法,每次我得到错误 知道原因了吗。
浏览 1
提问于2017-09-01
得票数 0
2
回答
在
元素
angular
4外部单击时隐藏
angular
、
angular2-directives
我为我的垂直导航创建了一个侧边菜单,因此我
在
单击时切换侧边菜单。我需要在单击菜单之外的任何位置时关闭该菜单。我尝试安装: (clickOutside)="close()"有什么需要帮忙的吗?指令代码: import {Directive, ElementRef, Output, EventEmitter, HostListener} from '@
angular
/cor
浏览 0
提问于2017-05-18
得票数 3
1
回答
在
angular
中使用指令
ngIf
或指令ngFor时显示空白页
angular
、
visual-studio-code
、
angular-directive
、
ngfor
、
angular-ng-if
我刚开始使用
Angular
,而且是初学者。 <h3 *
ngIf
=&
浏览 6
提问于2019-07-12
得票数 2
回答已采纳
1
回答
角为4的FullCalendar
在
Ionic3中的应用
angular
、
typescript
、
ionic2
、
fullcalendar
当在变量中设置日历选项时,此代码可以
工作
: fixedWeekCount: true, };但是当我调用一个函数时,不要
工作
: this.calendarOptions: Object = { editable: true }<
angular
2-fullcalendar
浏览 5
提问于2017-09-26
得票数 0
3
回答
在
ngIf
内部
嵌套时,异步管道订阅
无法
正常
工作
javascript
、
angular
、
typescript
、
rxjs
、
angular6
我使用ng-template和
ngIf
来显示/隐藏这个动画。我有一些li的嵌套在同一个div中,它订阅了一个可以使用异步管道来显示结果的搜索结果。当父div上没有*
ngIf
时,这个异步管道
工作
得很好,但是当我应用
ngIf
时,它似乎不再是订阅了。这是一种预期的行为吗?还是我做错什么了? 我的标记看起来是这样的。<input #searchBox type="text" (keyup)="itemLoading=true;searchTerm$.next(searchBox.val
浏览 0
提问于2018-08-22
得票数 6
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
从属性到结构,带你深入理解 Angular2 两大类型指令!
完美实现SpringBoot+Angular普通登录
从AngularJS快速跳转到Angular
Angular 9即将发布:改进Ivy编译和渲染管道
前端开发框架简介:angular和react
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券