docs(style-guide): make style guide code compliant with itself
closes #1578
This commit is contained in:
parent
0a0f78f144
commit
6fd62e9baf
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './heroes.component';
|
|
@ -0,0 +1,3 @@
|
|||
export * from './hero.model';
|
||||
export * from './hero.service';
|
||||
export * from './mock-heroes';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -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, []);
|
|
@ -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',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.component';
|
|
@ -0,0 +1,3 @@
|
|||
export * from './heroes';
|
||||
export * from './users';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './users.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { ValidateDirective } from './shared/validate.directive';
|
||||
import { ValidateDirective } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './validate.directive';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { ExceptionService } from './shared/exception.service';
|
||||
import { ExceptionService } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './exception.service';
|
|
@ -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',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './data.service';
|
|
@ -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',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero-collector.service';
|
||||
export * from './hero.model';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { ToastService } from './shared/toast.service';
|
||||
import { ToastService } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './toast.service';
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero.model';
|
||||
export * from './hero.service';
|
|
@ -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,
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './+heroes';
|
||||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero.model';
|
||||
export * from './hero.service';
|
|
@ -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,
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './+heroes';
|
||||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -2,7 +2,7 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
// #docregion example
|
||||
import { HeroesComponent } from './+heroes/index';
|
||||
import { HeroesComponent } from './+heroes';
|
||||
// #enddocregion example
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './+heroes';
|
||||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -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({
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './heroes.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.model';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroesComponent } from './heroes/heroes.component';
|
||||
import { HeroesComponent } from './+heroes';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './+heroes';
|
||||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './logger.service';
|
|
@ -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,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -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,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroesComponent } from './heroes/heroes.component';
|
||||
import { HeroesComponent } from './heroes';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// #docregion
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { Hero } from './shared/hero.model';
|
||||
import { Hero } from './shared';
|
||||
|
||||
// #docregion example
|
||||
@Component({
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './heroes.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.model';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -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',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -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,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-button';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { ToastComponent } from './shared/toast/toast.component';
|
||||
import { ToastComponent } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './toast';
|
|
@ -0,0 +1 @@
|
|||
export * from './toast.component';
|
|
@ -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',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-list.component';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero-list';
|
||||
export * from './shared';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HeroComponent } from './heroes/hero.component';
|
||||
import { HeroComponent } from './heroes';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.component';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -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',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-list.component';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero-list';
|
||||
export * from './shared';
|
|
@ -0,0 +1 @@
|
|||
export * from './hero.model';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HighlightDirective } from './shared/highlight.directive';
|
||||
import { HighlightDirective } from './shared';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './highlight.directive';
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { ValidatorDirective } from './shared/validator.directive';
|
||||
import { ValidatorDirective } from './shared';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './shared';
|
||||
export * from './app.component';
|
|
@ -0,0 +1 @@
|
|||
export * from './validate.directive';
|
|
@ -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,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './shared';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero.model';
|
||||
export * from './hero.service';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './heroes';
|
||||
export * from './app.component';
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './hero-list.component';
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hero-list';
|
||||
export * from './shared';
|
|
@ -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
Loading…
Reference in New Issue