Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 3b768a3

Browse files
storytimesolutionswardbell
authored andcommitted
docs(toh-1): remove public access modifiers
closes #1009 Remove public access modifier on AppComponent properties to be consistent throughout code tutorial
1 parent 6ccc9ad commit 3b768a3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

public/docs/_examples/toh-1/ts-snippets/app.component.snippets.pt1.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ template:`
3333

3434
// #docregion app-component-1
3535
export class AppComponent {
36-
public title = 'Tour of Heroes';
37-
public hero = 'Windstorm';
36+
title = 'Tour of Heroes';
37+
hero = 'Windstorm';
3838
}
3939
// #enddocregion app-component-1
4040

4141
// #docregion hero-property-1
42-
public hero: Hero = {
42+
hero: Hero = {
4343
id: 1,
4444
name: 'Windstorm'
4545
};

public/docs/_examples/toh-1/ts/app/app.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export class Hero {
2121
`
2222
})
2323
export class AppComponent {
24-
public title = 'Tour of Heroes';
25-
public hero: Hero = {
24+
title = 'Tour of Heroes';
25+
hero: Hero = {
2626
id: 1,
2727
name: 'Windstorm'
2828
};

0 commit comments

Comments
 (0)