Error: SyntaxError: Unexpected token < at eval () Evaluating http://localhost:3000/app/main.js Error loading http://localhost:3000/app/main.js Main.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module'; // importa o módulo que será carregado primeiro
const platform = platformBrowserDynamic();
platform.bootstrapModule(AppModule);
AppModule.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { FotoModule } from '../foto/foto.module';
@NgModule({
imports: [ BrowserModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]//botstrap é para qual iniciar "boot"
})
export class AppModule { }
AppComponent.ts
import {Component} from '@angular/core';
@Component({
selector: 'app',
templateUrl: './app/app.component.html'
})
export class AppComponent {}