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

Commit 9262f7a

Browse files
wardbellnaomiblack
authored andcommitted
docs(ngmodule): remove hero.service from module (post-RC6 todo)
also switched to moduleId
1 parent f0ff5e2 commit 9262f7a

File tree

6 files changed

+12
-18
lines changed

6 files changed

+12
-18
lines changed

public/docs/_examples/ngmodule/ts/app/contact/contact.component.3.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { Contact, ContactService } from './contact.service';
55
import { UserService } from '../user.service';
66

77
@Component({
8+
moduleId: module.id,
89
selector: 'app-contact',
9-
templateUrl: 'app/contact/contact.component.html',
10-
styleUrls: ['app/contact/contact.component.css']
10+
templateUrl: 'contact.component.html',
11+
styleUrls: ['contact.component.css']
1112
})
1213
export class ContactComponent implements OnInit {
1314
contact: Contact;
@@ -35,7 +36,7 @@ export class ContactComponent implements OnInit {
3536
}
3637

3738
onSubmit() {
38-
// TODO: do something like save it
39+
// POST-DEMO TODO: do something like save it
3940
this.displayMessage('Saved ' + this.contact.name);
4041
}
4142

public/docs/_examples/ngmodule/ts/app/contact/contact.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import { Contact, ContactService } from './contact.service';
66
import { UserService } from '../core/user.service';
77

88
@Component({
9+
moduleId: module.id,
910
selector: 'app-contact',
10-
templateUrl: 'app/contact/contact.component.html',
11-
styleUrls: ['app/contact/contact.component.css']
11+
templateUrl: 'contact.component.html',
12+
styleUrls: ['contact.component.css']
1213
})
1314
export class ContactComponent implements OnInit {
1415
contact: Contact;
@@ -36,7 +37,7 @@ export class ContactComponent implements OnInit {
3637
}
3738

3839
onSubmit() {
39-
// TODO: do something like save it
40+
// POST-DEMO TODO: do something like save it
4041
this.displayMessage('Saved ' + this.contact.name);
4142
}
4243

public/docs/_examples/ngmodule/ts/app/core/title.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { Component, Input } from '@angular/core';
33
import { UserService } from '../core/user.service';
44

55
@Component({
6+
moduleId: module.id,
67
selector: 'app-title',
7-
templateUrl: 'app/core/title.component.html',
8+
templateUrl: 'title.component.html',
89
})
910
export class TitleComponent {
1011
@Input() subtitle = '';

public/docs/_examples/ngmodule/ts/app/hero/hero.module.3.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@ import { HeroListComponent } from './hero-list.component';
88
import { HighlightDirective } from './highlight.directive';
99
import { routing } from './hero.routing.3';
1010

11-
// TODO: Remove in RC 6
12-
import { HeroService } from './hero.service';
13-
1411
// #docregion class
1512
@NgModule({
1613
imports: [ CommonModule, FormsModule, routing ],
17-
// TODO: Remove in RC 6
18-
providers: [ HeroService ],
1914
declarations: [
2015
HeroComponent, HeroDetailComponent, HeroListComponent,
2116
HighlightDirective

public/docs/_examples/ngmodule/ts/app/hero/hero.module.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ import { HeroDetailComponent } from './hero-detail.component';
77
import { HeroListComponent } from './hero-list.component';
88
import { routing } from './hero.routing';
99

10-
// TODO: Remove THE HeroService class in RC 6
11-
import { HeroService } from './hero.service';
12-
1310
@NgModule({
1411
imports: [ SharedModule, routing ],
15-
// TODO: Remove in RC 6
16-
providers: [ HeroService ],
1712
declarations: [
1813
HeroComponent, HeroDetailComponent, HeroListComponent,
1914
]

public/docs/_examples/ngmodule/ts/app/title.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import { UserService } from './user.service';
77
// #docregion v1
88

99
@Component({
10+
moduleId: module.id,
1011
selector: 'app-title',
11-
templateUrl: 'app/title.component.html',
12+
templateUrl: 'title.component.html',
1213
})
1314
export class TitleComponent {
1415
@Input() subtitle = '';

0 commit comments

Comments
 (0)