Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

O site não carrega.

Eu acabei fazendo tudo oq o prof pediu. E meu site n rodou. vou colocar os codigos aqui.

app.component.html

<app-nova-transferencia></app-nova-transferencia>

nova-transferencia.component.html

<h1>oi</h1>
<form>
  <h2>Nova Transferência</h2>
  <div>
<label for="valor">Valor</label>
<input id="valor" type="text">
  </div>
  <div>
    <label for="destino">Destino</label>
    <input id="destino" type="text">
  </div>
  <button>Transferir</button>
</form>

app.module.ts

import { NovaTransferenciaComponent } from './nova-transferencia/nova-transferencia.component';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent,
    NovaTransferenciaComponent
  ],
  imports: [
    BrowserModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

nova-transferencia.component.ts

import { Component } from "@angular/core";

@Component({
  selector: 'app-nova-transferencia',
  templateUrl: './nova-transferencia.component.html',
  styleUrls: ['./nova-transferencia.component.scss']
})
export class NovaTransferenciaComponent{

}

e o meu tsconfig.json

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2017",
    "module": "es2020",
    "lib": [
      "es2020",
      "dom"
    ]
  }
}
2 respostas
solução!

Fala Gabriel, tudo bem?

Sabe dizer se os arquivos também estão na pasta que ele criou durante a aula? Acho válido revisar esse ponto, não sei se para esse caso teria impacto, mas acredito que sim.

Outra questão é verificar o que gerou de erro exibido no CMD, lá mostra o que pode ter ocorrido.

beleza, ja verifiquei e por algum milagre voltou a normal. Valeu pela ajuda :)