以下是我对离子页面内容:离子的看法是不是一个已知的元素
<ion-content padding class = ""view-content">
<form>
[form content here...]
</form>
</ion-content>
我的CSS文件:
.view-content {
background: url("background.jpg");
,但它不工作,我发现了以下错误:
Unhandled Promise rejection: Template parse errors:
'ion-view' is not a known element:
1. If 'ion-view' is an Angular component, then verify that it is part of this module.
2. If 'ion-view' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("
[ERROR ->]<ion-view view-title="My Page">
<ion-content>
Hello!
")
可以告诉我在这里做错了什么或如何解决这个问题。 我是新来的离子框架,事实上新的web开发。
你使用离子型1还是离子型2? –
请分享您的组件代码。 – JoeriShoeby
离子视图是离子1中的一种成分,而不是离子2中的成分。 –