docs: more closely align the `getting-started-v0` and `getting-started` docs examples (#40197)

This commit aligns the code and style in the `getting-started-v0` docs
example with that of the `getting-started` example more closely (except
for the the parts that are intentionally different between the two).

PR Close #40197
This commit is contained in:
George Kalpakas 2021-01-06 23:05:29 +02:00 committed by atscott
parent 989b4a94d4
commit 1fae285e04
5 changed files with 12 additions and 15 deletions

View File

@ -1,3 +1 @@
p {
font-family: Lato;
}

View File

@ -3,6 +3,7 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ]
styleUrls: ['./app.component.css']
})
export class AppComponent {}
export class AppComponent {
}

View File

@ -20,6 +20,8 @@ import { ProductListComponent } from './product-list/product-list.component';
TopBarComponent,
ProductListComponent
],
bootstrap: [ AppComponent ]
bootstrap: [
AppComponent
]
})
export class AppModule { }

View File

@ -1,15 +1,10 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'app-top-bar',
templateUrl: './top-bar.component.html',
styleUrls: ['./top-bar.component.css']
})
export class TopBarComponent implements OnInit {
constructor() { }
ngOnInit() {
}
export class TopBarComponent {
}

View File

@ -1,11 +1,12 @@
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { environment } from './environments/environment';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule);
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));