腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
Angular
7-
无法
绑定
到
@
Input
()
属性
、
使用
Angular
7.2.0,我有以下组件: import { Component, OnInit,
Input
} from '@
angular
/core';}) @
Input
() customer: Customer; <
浏览 14
提问于2019-01-23
得票数 0
3
回答
角2 ngModel双向结合
我试着测试
Angular
2的双向
绑定
,但是我总是得到这个我怎么才能解决这个问题?import { Component } from '@
angular
/core'; selector: 'impure-pipe', template: `<
input
浏览 3
提问于2016-12-14
得票数 1
回答已采纳
1
回答
与带有空格的方括号表示法
属性
的角度
绑定
、
、
是否可以使用访问
属性
的方括号表示法
绑定
到
angular
中的
属性
。例如(使用伪代码)。<script type="text/javascript"> object["my property"] = 3;<
input
ng-model="object['my property']" /
浏览 0
提问于2014-11-11
得票数 3
1
回答
无法
绑定
到
“(ngModel”),因为它不是角单元测试用例中“输入”的已知
属性
、
、
我得到了“
无法
绑定
到
”(NgModel),因为它不是角单元测试用例中“输入”错误的已知
属性
import { async, ComponentFixture, TestBed } from '@
angular
/core/testing'; import { FormsModule } from '@
angular</
浏览 2
提问于2017-11-23
得票数 0
回答已采纳
1
回答
无法
绑定
到
“for”,因为它不是已知的本机
属性
angular
2
当我在标签标签中设置for
属性
的值时,出现了问题。
angular
抛出了错误:标签未处理的Promise rejection:模板解析错误:
无法
绑定
到
‘’,因为它不是'label‘的已知
属性
。<div *ngFor="#batch of batch_array">
浏览 5
提问于2016-02-06
得票数 24
回答已采纳
14
回答
使用ngModel的角2双向
绑定
不起作用
、
、
、
无法
绑定
到
“ngModel”,因为它不是“输入”元素的一个已知
属性
,并且没有对应
属性
的匹配指令import { Component, View, bootstrap } from'
angular
2/
angular
2' selector: 'data-bind'@View({ <
input
浏览 8
提问于2015-07-25
得票数 118
回答已采纳
1
回答
如何使用ng-bind填充文本框?
</title> <h1>Sample Application</h1> <p>Enter your Name: <
input
type="text" ng-model="name"></p> <
input
type ="text" ng-bind=&
浏览 0
提问于2015-03-24
得票数 10
回答已采纳
1
回答
将数据从组件传递
到
指令
、
、
、
我有以下指令代码:@
Input
() counter:number; } 我已经在我的WhileDirective中的
浏览 1
提问于2018-02-28
得票数 0
4
回答
具有get/set的
属性
的
Angular
2 @输入
我在该组件中有一个
Angular
2组件,它当前有一些字段,在它们之前应用了@ has ()来允许
绑定
到
该
属性
,即我想要做的实际上是用get/set
绑定
到
属性
,这样我就可以在setter中执行其他一些逻辑,如下所示get allowDay(): boolean { t
浏览 2
提问于2016-04-15
得票数 256
回答已采纳
1
回答
如何在
angular
2中的同一组件中定义自定义
属性
我正在尝试定义一个自定义
属性
计数。但下面会出现错误:
无法
绑定
到
“count”,因为它不是“p”的已知
属性
。如何删除此错误并计算<p>的自定义
属性
<p [count] = "10">other.component.ts import {Component,
Input
, OnInit} from '@
ang
浏览 3
提问于2017-05-10
得票数 3
1
回答
无法
绑定
到
“ngModel”,因为它不是“输入”的已知
属性
,尽管导入了FormsModule
、
我似乎
无法
把这两种方式结合起来工作。我在中应用了修复程序,但这不起作用。错误如下: 我的main.ts代码如下:import { bootstrap } from '@
浏览 2
提问于2016-08-19
得票数 7
回答已采纳
1
回答
无法
绑定
到
“ngModel”,因为它不是“
input
”的已知
属性
、
我的输入在下面,我添加了FormsModule引用,但仍然显示错误“
无法
绑定
到
‘ngModel’,因为它不是‘
input
’的已知
属性
”import { FormsModule, ReactiveFormsM
浏览 2
提问于2020-07-22
得票数 0
1
回答
如何在
angular
5中使用
angular
/forms?
、
、
、
、
我正在使用
angular
5,现在我需要一个表单用于用户的登录。} from '@
angular
/core';import { FormsModule} from '<div> </div> &l
浏览 3
提问于2018-04-05
得票数 0
1
回答
无法
将@
Input
to parent
绑定
到
子
Angular
2
我有以下配置:<login-info [username]="userInformation"></login-info>userInformation:string;@
Input
If 'login-info' is an
Angular
component and it has 'username'
input
, then verify that it is part of
浏览 10
提问于2017-01-28
得票数 2
回答已采纳
2
回答
Angular
6“
无法
绑定
到
'ngModel‘,因为它不是’
input
‘的已知
属性
。”
已经有很多人问过这个问题,但我已经根据每个答案将其导入到我的app.module.ts文件中,甚至导入
到
app.spec.ts文件中<p>{{ randomWord }}</p><
input
type="text" [(ngModel)]="enteredValue"><p>{{ answer
浏览 3
提问于2018-11-08
得票数 9
1
回答
Angular
Karma -
无法
绑定
到
'alwaysShowCalendars‘,因为它不是'
input
’的已知
属性
、
、
Failed: Template parse errors: </div> <
input
[ERROR ->][nbDatepickerIf
浏览 24
提问于2020-07-29
得票数 0
回答已采纳
13
回答
Angular
2:
无法
绑定
到
“ngModel”,因为它不是“
input
”的已知
属性
、
、
、
attr.for]="question.key">{{question.label}}</label> </select>
浏览 106
提问于2016-08-11
得票数 185
回答已采纳
1
回答
Ionic3 -
无法
绑定
到
“textMask”,因为它不是“ion-
input
”的已知
属性
、
、
我试图在ionic 3上使用textMask,但它不工作,我收到错误消息(
无法
绑定
到
'textMask‘,因为它不是’ion-
input
‘的已知
属性
)。我正在学习Joshmorony的教程 @NgModule({imports: [ TextMaskModule c
浏览 0
提问于2018-06-07
得票数 2
回答已采纳
1
回答
角分量参数函数
、
、
我怎么能说我的
angular
2组件可以接收作为参数的函数? import { NgModel } from '@
angular
/forms'; @Component(/
input
-text.component.ht
浏览 6
提问于2017-11-09
得票数 1
回答已采纳
4
回答
如何读取角2中组件输入
属性
绑定
的字符串值?
、
我的
angular
2应用程序中有一个简单的表单输入组件,它包含一个@
Input
绑定
到
属性
[dataProperty]。正如您可能已经猜到的,[dataProperty]
属性
是格式:[dataProperty]="modelObject.childObj.prop"的字符串值,其中modelObject是整个应用程序共享的模型基本上,我使用这个@
Input
属性
将模型从父组件传递给我的<custom-text-
input<
浏览 6
提问于2017-01-27
得票数 4
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券