The following is my content for the ion page:
<ion-content padding class = ""view-content">
<form>
[form content here...]
</form>
</ion-content>
my css file:
.view-content {
background: url("background.jpg");
but it does not work, and I get the following error:
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!
")
Can someone tell me what I'm doing wrong here or how to solve it. I am new to ionic structure, new to web development.
source
share