I started this Angular course and i got stuck at the very beginning... I installed Bootstrap through its guide and still i get blank page.
re-installing the whole thing didint help
angular.json
"styles": [
"src/styles.css",
"./node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [
"node_modules/jquery/dist/jquery.slim.min.js",
"node_modules/popper.js/dist/umd/popper.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js"
],
app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `<app-server></app-server>
<app-server></app-server>`,
styleUrls: ['./app.component.css',]
})
export class AppComponent {
title = 'title';
}
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { ServerComponent } from './server/server.component';
import { ServersComponent } from './servers/servers.component';
@NgModule({
declarations: [
AppComponent,
ServerComponent,
ServersComponent
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
app.component.html
<div class="container">
<div class="row">
<div class="col-xs-1-12">
<h3>new component here</h3>
<hr>
<app-servers></app-servers>
</div>
</div>
</div>