小编M. *_*cal的帖子

无法绑定到“NgModel”,因为它不是“离子输入”的已知属性

我不知道如何处理这个错误:

Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'NgModel' since it isn't a known property of 'ion-input'.
1. If 'ion-input' is an Angular component and it has 'NgModel' input, then verify that it is part of this module.
2. If 'ion-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
<ion-item>
  <ion-label>Cambio</ion-label>
  <ion-input type="text" …
Run Code Online (Sandbox Code Playgroud)

ionic3 angular

8
推荐指数
2
解决办法
6682
查看次数

可以在 Android 上没有 ToolBar 的情况下制作视差效果吗?

我一直在寻找很长时间(也在寻找第三方库)来制作某种“视差”,但没有Toolbar,我所看到的只是使用Toolbar,但这不符合我的最佳利益,因为我Toolbar在整个应用程序中删除了.

我按照这个例子:https : //www.youtube.com/watch?v=HO82ES_RiSQ但它并没有说服我......

有谁能解决这个问题吗?我想知道如何在不使用的情况下进行视差Toolbar

提前致谢

java android parallax

4
推荐指数
1
解决办法
1029
查看次数

如何在Ionic 4的搜索栏上使用自动完成功能?

我正在寻找一些示例,但是看不到有人在搜索它,我只想对2或3个单词进行硬编码,非常感谢。我是否需要寻找离子3?还是在angular2更好?

autocomplete searchbar ionic4

3
推荐指数
3
解决办法
7868
查看次数

如何检查 Angular for Ionic 5 上的单选按钮?

我收到以下错误:

core.js:7812 Can't bind to 'checked' since it isn't a known property of 'ion-radio'.

我在 HTML 上的代码是:

    <ion-list>
      <ion-radio-group value="default" (ionChange)="radioGroupChange($event)">
        <ion-list-header>
          <ion-label>Image language</ion-label>
        </ion-list-header>
    
        <ion-item>
          <ion-label>SPA</ion-label>
          <ion-radio [checked]="true" slot="start" value="spa"></ion-radio>
        </ion-item>
    
        <ion-item>
          <ion-label>RU</ion-label>
          <ion-radio slot="start" value="ru"></ion-radio>
        </ion-item>
    
        <ion-item>
          <ion-label>ENG</ion-label>
          <ion-radio slot="start" value="eng"></ion-radio>
        </ion-item>
      </ion-radio-group>

    </ion-list>
Run Code Online (Sandbox Code Playgroud)

如何设置默认选中的单选按钮?

radio-button ionic5

3
推荐指数
1
解决办法
2966
查看次数