docs(aio): rename cb- files and a few others

This commit is contained in:
Ward Bell
2017-04-21 17:21:45 -07:00
committed by Pete Bacon Darwin
parent c3fa8803d3
commit 93516ea8a1
543 changed files with 467 additions and 510 deletions

View File

@ -0,0 +1,18 @@
import { Component, OnInit } from '@angular/core';
import { ExceptionService } from './core';
@Component({
selector: 'sg-app',
template: '<div>The expected error is {{errorCode}}</div>',
providers: [ExceptionService]
})
export class AppComponent implements OnInit {
errorCode: number;
constructor(private exceptionService: ExceptionService) { }
ngOnInit() {
this.errorCode = this.exceptionService.getException();
}
}

View File

@ -0,0 +1,15 @@
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { AppComponent } from './app.component';
@NgModule({
imports: [
RouterModule.forChild([{ path: '03-01', component: AppComponent }])
],
declarations: [
AppComponent
],
exports: [ AppComponent ]
})
export class AppModule {}

View File

@ -0,0 +1,11 @@
// #docregion
import { Injectable } from '@angular/core';
@Injectable()
// #docregion example
/* avoid */
export class exceptionService {
constructor() { }
}
// #enddocregion example

View File

@ -0,0 +1,14 @@
// #docplaster
// #docregion
import { Injectable } from '@angular/core';
@Injectable()
// #docregion example
export class ExceptionService {
constructor() { }
// #enddocregion example
// testing harness
getException() { return 42; }
// #docregion example
}
// #enddocregion example

View File

@ -0,0 +1 @@
export * from './exception.service';

View File

@ -0,0 +1,2 @@
export * from './core';
export * from './app.component';