angular - StackLayout 中的 ngFor 在构建 apk 后显示为最后一个组件
问题描述
我有一个小视图StackLayout
。使用时tns preview
内部的组件按指定的顺序按预期显示。但是,在使用 apk 时,将CheckBoxes
显示为StackLayout
. 原因似乎是使用ngFor
.
这是说明问题的两个屏幕截图:
这是我的代码:
<app-action-bar title="{{getTitle()}} - Lernen"></app-action-bar>
<StackLayout>
<Label text="{{currentQuestion.question}}" textwrap="true"></Label>
<CheckBox *ngFor="let answer of this.userAnswers" text="{{answer.answer}}"></CheckBox>
<Button text="Weiter!"></Button>
<Button text="Feedback"></Button>
</StackLayout>
我非常欢迎任何帮助!
解决方案
已在 @nativescript/angular 10.1.4 和 10.1.5 中修复
推荐阅读
- codenameone - 动画在 iOS 设备中无法立即启动 - cn1
- android - 如何在android的谷歌地图上获取两个位置之间的旅行时间?
- azure-ad-b2c - Azure AD B2C - 跳过电子邮件验证的最后一步
- typo3 - Typo3 流体设计:Pagination Vs SQL setLimit
- python - 如何在 PyTorch 数据加载器中将 RGB 图像转换为灰度?
- r - 重新编码每年的日期范围并计数的最快方法?
- html - 我如何能够将动画 svg 代码保存到 .svg 文件?
- ios - iOS 将不同设备之间的数据共享到同一个应用程序
- java - 是否可以将对象提供给 ListView,但显示字符串?
- java - 使用 JUnit5 时,出现警告:“ClassNotFoundException: org.junit.platform.engine.support.filter.ExclusionReasonConsumingFilter”