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
|
// #docregion app-component-1
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
public title = 'Tour of Heroes';
|
title = 'Tour of Heroes';
|
||||||
public hero = 'Windstorm';
|
hero = 'Windstorm';
|
||||||
}
|
}
|
||||||
// #enddocregion app-component-1
|
// #enddocregion app-component-1
|
||||||
|
|
||||||
// #docregion hero-property-1
|
// #docregion hero-property-1
|
||||||
public hero: Hero = {
|
hero: Hero = {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'Windstorm'
|
name: 'Windstorm'
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,8 +21,8 @@ export class Hero {
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
public title = 'Tour of Heroes';
|
title = 'Tour of Heroes';
|
||||||
public hero: Hero = {
|
hero: Hero = {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'Windstorm'
|
name: 'Windstorm'
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue