0
I have a small problem, I started my studies in Angular, I’m still understanding the functioning of modules, components and services. But when I put an html structure in Component.html, it simply doesn’t show anything on the page, if I delete that structure and just put one div with bootstrap, it shows on the screen. How can I solve this ? I already took the tag from the selector and put it in the app.component.html
Div com bootstrap sendo mostrada em tela.
<div class="container">
<div class="row">
<p>teste</p>
</div>
</div>
Estrutura html que não aparece em tela, localizada no teste.component.html. Exp:
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<script src="main.js"></script>
</head>
<body>
<p>Teste</p>
</body>
</html>>
Your
app.component.html
has an element<router-output>
no body? Are the routes correct? How is the component problem defined? Will I need more code.– mutlei