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:
parent
989b4a94d4
commit
1fae285e04
@ -1,3 +1 @@
|
|||||||
p {
|
|
||||||
font-family: Lato;
|
|
||||||
}
|
|
||||||
|
@ -5,4 +5,5 @@ import { Component } from '@angular/core';
|
|||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
styleUrls: ['./app.component.css']
|
styleUrls: ['./app.component.css']
|
||||||
})
|
})
|
||||||
export class AppComponent {}
|
export class AppComponent {
|
||||||
|
}
|
||||||
|
@ -20,6 +20,8 @@ import { ProductListComponent } from './product-list/product-list.component';
|
|||||||
TopBarComponent,
|
TopBarComponent,
|
||||||
ProductListComponent
|
ProductListComponent
|
||||||
],
|
],
|
||||||
bootstrap: [ AppComponent ]
|
bootstrap: [
|
||||||
|
AppComponent
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class AppModule { }
|
export class AppModule { }
|
||||||
|
@ -1,15 +1,10 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-top-bar',
|
selector: 'app-top-bar',
|
||||||
templateUrl: './top-bar.component.html',
|
templateUrl: './top-bar.component.html',
|
||||||
styleUrls: ['./top-bar.component.css']
|
styleUrls: ['./top-bar.component.css']
|
||||||
})
|
})
|
||||||
export class TopBarComponent implements OnInit {
|
export class TopBarComponent {
|
||||||
|
|
||||||
constructor() { }
|
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
import { enableProdMode } from '@angular/core';
|
import { enableProdMode } from '@angular/core';
|
||||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
import { environment } from './environments/environment';
|
|
||||||
|
|
||||||
import { AppModule } from './app/app.module';
|
import { AppModule } from './app/app.module';
|
||||||
|
import { environment } from './environments/environment';
|
||||||
|
|
||||||
if (environment.production) {
|
if (environment.production) {
|
||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
||||||
|
.catch(err => console.error(err));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user