Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71031

Add Component with Ionic-v5

$
0
0

I want to create my own tag. and i get this error

‘app-temp’ is not a known element:
1. If ‘app-temp’ is an Angular component, then verify that it is part of this module.
2. If ‘app-temp’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message.

1-) Created Component with ionic generate component components/temp
2-) added in app.module.ts

@NgModule({

  declarations: [AppComponent, TempComponent],
*
*

3-) used <app-temp></app-temp> o any page in app

Could you help me with this solution ??

‘app-temp’ is not a known element:
1. If ‘app-temp’ is an Angular component, then verify that it is part of this module.
2. If ‘app-temp’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 71031

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>