Actividad entregable
2. Creando el proyecto Angular
2.4. Limpiar AppComponent y probar Bootstrap
Abre src/app/app.ts y deja
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
@Component({
selector: 'app-root',
standalone: true,
imports: [CommonModule],
templateUrl: './app.html'
})
export class AppComponent {}
Abre src/app/app.html y comprobamos que funciona el boostrap
<h1 class="text-center text-primary">Gestión de Productos</h1>
<h2 class="text-center text-primary mt-4">Bootstrap funcionando</h2>
Si el texto aparece centrado y azul, Bootstrap está funcionando.