【发布时间】:2019-12-02 05:52:35
【问题描述】:
我有一个 NativeScript 6.0.x 应用程序,并且我有一个列表组件,我通过路由导航到其中。一旦我到达那里,即使我将其设置为“列表”,ActionBar 也会显示“预览”。
list.component.html 文件
<ActionBar title="Listing"></ActionBar>
<Label text="Hello world"></Label>
list.component.ts 文件
import { Component } from "@angular/core";
@Component({
selector: "gr-list",
moduleId: module.id,
templateUrl: "./list.component.html",
styleUrls: ["./list.component.css"]
})
export class ListComponent { }
【问题讨论】:
-
可以分享 Playground 链接吗?
-
这是本地开发的应用程序,不在游乐场网站上,所以我没有链接或方法将其导入游乐场
标签: angular nativescript