docs(toh-1): remove public access modifiers
closes #1009 Remove public access modifier on AppComponent properties to be consistent throughout code tutorial
This commit is contained in:
parent
6ccc9adac6
commit
3b768a341c
|
@ -33,13 +33,13 @@ template:`
|
|||
|
||||
// #docregion app-component-1
|
||||
export class AppComponent {
|
||||
public title = 'Tour of Heroes';
|
||||
public hero = 'Windstorm';
|
||||
title = 'Tour of Heroes';
|
||||
hero = 'Windstorm';
|
||||
}
|
||||
// #enddocregion app-component-1
|
||||
|
||||
// #docregion hero-property-1
|
||||
public hero: Hero = {
|
||||
hero: Hero = {
|
||||
id: 1,
|
||||
name: 'Windstorm'
|
||||
};
|
||||
|
|
|
@ -21,8 +21,8 @@ export class Hero {
|
|||
`
|
||||
})
|
||||
export class AppComponent {
|
||||
public title = 'Tour of Heroes';
|
||||
public hero: Hero = {
|
||||
title = 'Tour of Heroes';
|
||||
hero: Hero = {
|
||||
id: 1,
|
||||
name: 'Windstorm'
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue