content inside ion-content does not appear on screen using ionic 4 via CDN
See original GitHub issueIonic version: 4.x
I’m submitting a … bug report
Current behavior:
ion-content is not displaying the components within. So while <ion-button>button</ion-button> might work <ion-content><ion-button>button</ion-button></ion-content> doesn’t display.
Inspecting the components reveals that the components inside ion-content does render but maybe due to a css issue they don’t display on screen.
here are some examples of the current behavior: https://stackblitz.com/edit/js-ypm733 https://glitch.com/edit/#!/neighborly-bison?path=views/index.html:54:5
locally:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<ion-header>
<ion-toolbar>
<ion-title>Toolbar</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-card>
<ion-card-header>
Header
</ion-card-header>
<ion-card-content>
The British use the term "header", but the American term "head-shot" the English simply refuse to adopt.
</ion-card-content>
</ion-card>
</ion-content>
<ion-footer>
<ion-toolbar>
<ion-title>Footer</ion-title>
</ion-toolbar>
</ion-footer>
<script src="https://unpkg.com/@ionic/core@4.0.0-alpha.4/dist/ionic.js"></script>
</body>
</html>
Expected behavior:
expected behaivor is that the components within ion-content display.
Steps to reproduce:
- adding ionic core via the CDN<script src="https://unpkg.com/@ionic/core@4.0.0-alpha.4/dist/ionic.js"></script>
Other information:
It seems to work fine when using the ionic pwa toolkit .
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
ion-content won't show when using Ionic core 4
To illustrate, I've made a example that uses Ionic core. With the latest Ionic version the ion-content tag doesn't show up, but if...
Read more >Ion-content doesn't work - Ionic Forum
Hello to everyone , i don't know why inside my ion-content tags nothing is interactive. The searchabar doesn't work, even buttons.
Read more >Announcing Ionic 6 - Ionic Blog
Today I am excited to announce the release of Ionic 6! This release adds improved desktop support, overhauled components, iOS and Android ...
Read more >How to Add a Blog to Your Ionic App With ButterCMS
You only have to create your content once, and you can display it on a variety of devices including a website or, as...
Read more >Setting up a chart in an Ionic App using Highcharts
First thing first: install Ionic by typing the following commands in the command prompt or terminal. Actually, the first thing is to install...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I see the same issue, and here is what I have found out:
<ion-app>.<ion-page>, it won’t have a height. You need to use an element with classion-pageinstead. This is probably a bug. It setsflex: 1to that element to make it take the remaining space.Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.