docs(style-guide): make style guide code compliant with itself

closes #1578
This commit is contained in:
Foxandxss 2016-05-24 15:16:23 +02:00 committed by Ward Bell
parent 0a0f78f144
commit 6fd62e9baf
122 changed files with 222 additions and 105 deletions

View File

@ -1,10 +1,7 @@
// #docregion
// app.component.ts
import { Component } from '@angular/core';
import { HeroesComponent } from './heroes/heroes.component';
import { HeroService } from './heroes/shared/hero.service';
import { HeroesComponent, HeroService } from './heroes';
@Component({
moduleId: module.id,

View File

@ -1,8 +1,7 @@
// #docregion
import { Component, OnInit } from '@angular/core';
import { Hero } from './shared/hero.model';
import { HeroService } from './shared/hero.service';
import { Hero, HeroService } from './shared';
@Component({
selector: 'toh-heroes',

View File

@ -0,0 +1,2 @@
export * from './shared';
export * from './heroes.component';

View File

@ -0,0 +1,3 @@
export * from './hero.model';
export * from './hero.service';
export * from './mock-heroes';

View File

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

View File

@ -1,6 +1,6 @@
// #docregion
import { bootstrap } from '@angular/platform-browser-dynamic';
import { AppComponent } from './app.component';
import { AppComponent } from './app/app.component';
bootstrap(AppComponent, []);

View File

@ -1,7 +1,7 @@
import { Component } from '@angular/core';
import { HeroComponent } from './heroes/hero.component';
import { UsersComponent } from './users/users.component';
import { HeroComponent } from './heroes';
import { UsersComponent } from './users';
@Component({
selector: 'sg-app',

View File

@ -0,0 +1 @@
export * from './hero.component';

View File

@ -0,0 +1,3 @@
export * from './heroes';
export * from './users';
export * from './app.component';

View File

@ -0,0 +1 @@
export * from './users.component';

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { ValidateDirective } from './shared/validate.directive';
import { ValidateDirective } from './shared';
@Component({
selector: 'sg-app',

View File

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

View File

@ -0,0 +1 @@
export * from './validate.directive';

View File

@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { ExceptionService } from './shared/exception.service';
import { ExceptionService } from './shared';
@Component({
selector: 'sg-app',

View File

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

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HEROES_URL, VILLAINS_URL } from './shared/data.service';
import { HEROES_URL, VILLAINS_URL } from './shared';
@Component({
selector: 'sg-app',

View File

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

View File

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

View File

@ -1,7 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { HeroCollectorService } from './shared/hero-collector.service';
import { Hero } from './shared/hero.model';
import { Hero, HeroCollectorService } from './shared';
@Component({
selector: 'sg-app',

View File

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

View File

@ -0,0 +1,2 @@
export * from './hero-collector.service';
export * from './hero.model';

View File

@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { ToastService } from './shared/toast.service';
import { ToastService } from './shared';
@Component({
selector: 'sg-app',

View File

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

View File

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

View File

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

View File

@ -0,0 +1,2 @@
export * from './hero.model';
export * from './hero.service';

View File

@ -1,8 +1,7 @@
import { Component, OnInit } from '@angular/core';
import { HeroService } from './+heroes/shared/hero.service';
import { Hero, HeroService } from './+heroes';
import { ExceptionService, SpinnerService, ToastService } from './shared';
import { Hero } from './+heroes/shared/hero.model';
@Component({
moduleId: module.id,

View File

@ -0,0 +1,3 @@
export * from './+heroes';
export * from './shared';
export * from './app.component';

View File

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

View File

@ -0,0 +1,2 @@
export * from './hero.model';
export * from './hero.service';

View File

@ -1,8 +1,7 @@
import { Component, OnInit } from '@angular/core';
import { HeroService } from './+heroes/shared/hero.service';
import { Hero, HeroService } from './+heroes';
import { ExceptionService, SpinnerService, ToastService } from './shared';
import { Hero } from './+heroes/shared/hero.model';
@Component({
moduleId: module.id,

View File

@ -0,0 +1,3 @@
export * from './+heroes';
export * from './shared';
export * from './app.component';

View File

@ -2,7 +2,7 @@
import { Component } from '@angular/core';
// #docregion example
import { HeroesComponent } from './+heroes/index';
import { HeroesComponent } from './+heroes';
// #enddocregion example
@Component({

View File

@ -0,0 +1,3 @@
export * from './+heroes';
export * from './shared';
export * from './app.component';

View File

@ -1,9 +1,9 @@
// #docregion
import { Component, OnInit } from '@angular/core';
import { Hero } from './shared/hero.model';
import { Hero } from './shared';
// #docregion example
import { Logger } from '../shared/logger.service';
import { Logger } from '../shared';
// #enddocregion example
@Component({

View File

@ -0,0 +1,2 @@
export * from './shared';
export * from './heroes.component';

View File

@ -0,0 +1 @@
export * from './hero.model';

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HeroesComponent } from './heroes/heroes.component';
import { HeroesComponent } from './+heroes';
@Component({
selector: 'sg-app',

View File

@ -0,0 +1,3 @@
export * from './+heroes';
export * from './shared';
export * from './app.component';

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HeroButtonComponent } from './heroes/shared/hero-button/hero-button.component';
import { HeroButtonComponent } from './heroes';
@Component({
moduleId: module.id,

View File

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

View File

@ -0,0 +1 @@
export * from './hero-button.component';

View File

@ -0,0 +1 @@
export * from './hero-button';

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HeroButtonComponent } from './heroes/shared/hero-button/hero-button.component';
import { HeroButtonComponent } from './heroes';
@Component({
moduleId: module.id,

View File

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

View File

@ -0,0 +1 @@
export * from './hero-button.component';

View File

@ -0,0 +1 @@
export * from './hero-button';

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HeroesComponent } from './heroes/heroes.component';
import { HeroesComponent } from './heroes';
@Component({
selector: 'sg-app',

View File

@ -2,7 +2,7 @@
// #docregion
import { Component, OnInit } from '@angular/core';
import { Hero } from './shared/hero.model';
import { Hero } from './shared';
// #docregion example
@Component({

View File

@ -0,0 +1,2 @@
export * from './shared';
export * from './heroes.component';

View File

@ -0,0 +1 @@
export * from './hero.model';

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HeroButtonComponent } from './heroes/shared/hero-button/hero-button.component';
import { HeroButtonComponent } from './heroes';
@Component({
selector: 'sg-app',

View File

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

View File

@ -0,0 +1 @@
export * from './hero-button.component';

View File

@ -0,0 +1 @@
export * from './hero-button';

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HeroButtonComponent } from './heroes/shared/hero-button/hero-button.component';
import { HeroButtonComponent } from './heroes';
@Component({
moduleId: module.id,

View File

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

View File

@ -0,0 +1 @@
export * from './hero-button.component';

View File

@ -0,0 +1 @@
export * from './hero-button';

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { ToastComponent } from './shared/toast/toast.component';
import { ToastComponent } from './shared';
@Component({
selector: 'sg-app',

View File

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

View File

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

View File

@ -0,0 +1 @@
export * from './toast.component';

View File

@ -1,7 +1,6 @@
import { Component } from '@angular/core';
import { HeroListComponent } from './heroes/hero-list/hero-list.component';
import { HeroService } from './heroes/shared';
import { HeroListComponent, HeroService } from './heroes';
@Component({
selector: 'sg-app',

View File

@ -0,0 +1 @@
export * from './hero-list.component';

View File

@ -0,0 +1,2 @@
export * from './hero-list';
export * from './shared';

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HeroComponent } from './heroes/hero.component';
import { HeroComponent } from './heroes';
@Component({
moduleId: module.id,

View File

@ -0,0 +1 @@
export * from './hero.component';

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HeroListComponent } from './heroes/hero-list/hero-list.component';
import { HeroListComponent } from './heroes';
@Component({
selector: 'sg-app',

View File

@ -0,0 +1 @@
export * from './hero-list.component';

View File

@ -0,0 +1,2 @@
export * from './hero-list';
export * from './shared';

View File

@ -0,0 +1 @@
export * from './hero.model';

View File

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

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { HighlightDirective } from './shared/highlight.directive';
import { HighlightDirective } from './shared';
@Component({
moduleId: module.id,

View File

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

View File

@ -0,0 +1 @@
export * from './highlight.directive';

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { ValidatorDirective } from './shared/validator.directive';
import { ValidatorDirective } from './shared';
@Component({
selector: 'sg-app',

View File

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

View File

@ -0,0 +1 @@
export * from './validate.directive';

View File

@ -1,7 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { HeroService } from './heroes/shared/hero.service';
import { Hero } from './heroes/shared/hero.model';
import { Hero, HeroService } from './heroes';
@Component({
moduleId: module.id,

View File

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

View File

@ -0,0 +1,2 @@
export * from './hero.model';
export * from './hero.service';

View File

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

View File

@ -1,8 +1,7 @@
// #docregion
import { Component } from '@angular/core';
import { HeroListComponent } from './heroes/hero-list/hero-list.component';
import { HeroService } from './heroes/shared/hero.service';
import { HeroListComponent, HeroService } from './heroes';
@Component({
selector: 'toh-app',

View File

@ -1,8 +1,7 @@
// #docregion
import { Component, OnInit } from '@angular/core';
import { HeroService } from '../shared/hero.service';
import { Hero } from '../shared/hero.model';
import { Hero, HeroService } from '../shared';
@Component({
selector: 'toh-heroes',

View File

@ -0,0 +1 @@
export * from './hero-list.component';

View File

@ -0,0 +1,2 @@
export * from './hero-list';
export * from './shared';

View File

@ -1,3 +1,3 @@
// #docregion
export * from './hero.model.ts';
export * from './hero.service.ts';
export * from './hero.model';
export * from './hero.service';

Some files were not shown because too many files have changed in this diff Show More