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

Commit 3f50248

Browse files
Foxandxsswardbell
authored andcommitted
docs(style-guide): revisions for New World (repack)
closes #1260
1 parent cadd6c9 commit 3f50248

File tree

77 files changed

+269
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+269
-320
lines changed

public/docs/_examples/style-guide/ts/01-01/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// #docregion
2-
/* recommended */
32

43
// app.component.ts
54
import { Component } from '@angular/core';

public/docs/_examples/style-guide/ts/01-01/app/heroes/shared/hero.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// #docregion
2-
/* recommended */
32
import { Injectable } from '@angular/core';
43

54
import { HEROES } from './mock-heroes';

public/docs/_examples/style-guide/ts/01-01/app/placeholder.ts

Lines changed: 0 additions & 93 deletions
This file was deleted.

public/docs/_examples/style-guide/ts/02-07/app/heroes/hero.component.avoid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import { Component } from 'angular2/core';
2+
import { Component } from '@angular/core';
33
// #docregion example
44
/* avoid */
55

public/docs/_examples/style-guide/ts/02-07/app/users/users.component.avoid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import { Component } from 'angular2/core';
2+
import { Component } from '@angular/core';
33
// #docregion example
44
/* avoid */
55

public/docs/_examples/style-guide/ts/02-08/app/shared/validate.directive.avoid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import { Directive } from 'angular2/core';
2+
import { Directive } from '@angular/core';
33
// #docregion example
44
/* avoid */
55

public/docs/_examples/style-guide/ts/03-01/app/shared/exception.service.avoid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import { Injectable } from 'angular2/core';
2+
import { Injectable } from '@angular/core';
33

44
@Injectable()
55
// #docregion example

public/docs/_examples/style-guide/ts/03-01/app/shared/exception.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import { Injectable } from 'angular2/core';
2+
import { Injectable } from '@angular/core';
33

44
@Injectable()
55
// #docregion example

public/docs/_examples/style-guide/ts/03-03/app/shared/hero-collector.service.avoid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// #docregion example
33
/* avoid */
44

5-
import { Injectable } from 'angular2/core';
5+
import { Injectable } from '@angular/core';
66

77
import { IHero } from './hero.model.avoid';
88

public/docs/_examples/style-guide/ts/03-03/app/shared/hero-collector.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #docregion
22
// #docregion example
3-
import { Injectable } from 'angular2/core';
3+
import { Injectable } from '@angular/core';
44

55
import { Hero } from './hero.model';
66

public/docs/_examples/style-guide/ts/03-04/app/shared/toast/toast.service.avoid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// #docregion example
33
/* avoid */
44

5-
import { Injectable } from 'angular2/core';
5+
import { Injectable } from '@angular/core';
66

77
@Injectable()
88
export class ToastService {

public/docs/_examples/style-guide/ts/03-04/app/shared/toast/toast.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #docregion
22
// #docregion example
3-
import { Injectable } from 'angular2/core';
3+
import { Injectable } from '@angular/core';
44

55
@Injectable()
66
export class ToastService {

public/docs/_examples/style-guide/ts/03-05/app/+heroes/shared/hero.service.avoid.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// #docregion example
33
/* avoid */
44

5-
import {Injectable} from 'angular2/core';
6-
import {Http, Response} from 'angular2/http';
5+
import {Injectable} from '@angular/core';
6+
import {Http, Response} from '@angular/http';
77

88
import {Hero} from './hero.model';
99
import {ExceptionService, SpinnerService, ToastService} from '../../shared';

public/docs/_examples/style-guide/ts/03-05/app/+heroes/shared/hero.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #docregion
22
// #docregion example
3-
import { Injectable } from 'angular2/core';
4-
import { Http, Response } from 'angular2/http';
3+
import { Injectable } from '@angular/core';
4+
import { Http, Response } from '@angular/http';
55

66
import { Hero } from './hero.model';
77
import { ExceptionService, SpinnerService, ToastService } from '../../shared';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class ExceptionService { }

public/docs/_examples/style-guide/ts/03-05/app/shared/spinner/spinner.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, OnDestroy, OnInit} from 'angular2/core';
1+
import { Component, OnDestroy, OnInit } from '@angular/core';
22

33
import { SpinnerService } from './spinner.service';
44

public/docs/_examples/style-guide/ts/03-05/app/shared/spinner/spinner.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
export interface ISpinnerState { }
44

public/docs/_examples/style-guide/ts/03-05/app/shared/toast/toast.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from 'angular2/core';
1+
import { Component, OnInit } from '@angular/core';
22

33
import { ToastService } from './toast.service';
44

public/docs/_examples/style-guide/ts/03-05/app/shared/toast/toast.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class ToastService {

public/docs/_examples/style-guide/ts/03-06/app/+heroes/shared/hero.service.avoid.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// #docregion example
33
/* avoid */
44

5-
import { ExceptionService, SpinnerService, ToastService } from '../../../app/shared';
6-
import { Http, Response } from 'angular2/http';
7-
import { Injectable } from 'angular2/core';
5+
import { ExceptionService, SpinnerService, ToastService } from '../../shared';
6+
import { Http, Response } from '@angular/http';
7+
import { Injectable } from '@angular/core';
88
import { Hero } from './hero.model';
99
// #enddocregion example
1010

public/docs/_examples/style-guide/ts/03-06/app/+heroes/shared/hero.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// #docregion
22
// #docregion example
3-
import { Injectable } from 'angular2/core';
4-
import { Http, Response } from 'angular2/http';
3+
import { Injectable } from '@angular/core';
4+
import { Http, Response } from '@angular/http';
55

66
import { Hero } from './hero.model';
7-
import { ExceptionService, SpinnerService, ToastService } from '../../../app/shared';
7+
import { ExceptionService, SpinnerService, ToastService } from '../../shared';
88
// #enddocregion example
99

1010
@Injectable()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class ExceptionService { }

public/docs/_examples/style-guide/ts/03-06/app/shared/spinner/spinner.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, OnDestroy, OnInit} from 'angular2/core';
1+
import { Component, OnDestroy, OnInit } from '@angular/core';
22

33
import { SpinnerService } from './spinner.service';
44

public/docs/_examples/style-guide/ts/03-06/app/shared/spinner/spinner.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
export interface ISpinnerState { }
44

public/docs/_examples/style-guide/ts/03-06/app/shared/toast/toast.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from 'angular2/core';
1+
import { Component, OnInit } from '@angular/core';
22

33
import { ToastService } from './toast.service';
44

public/docs/_examples/style-guide/ts/03-06/app/shared/toast/toast.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class ToastService {

public/docs/_examples/style-guide/ts/04-10/app/+heroes/heroes.component.avoid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// #docregion example
33
/* avoid */
44

5-
import { Component, OnInit } from 'angular2/core';
5+
import { Component, OnInit } from '@angular/core';
66

77
import { CONFIG } from '../shared/config';
88
import { EntityService } from '../shared/entity.service';

public/docs/_examples/style-guide/ts/04-10/app/+heroes/heroes.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #docplaster
22
// #docregion
33
// #docregion example
4-
import { Component, OnInit } from 'angular2/core';
4+
import { Component, OnInit } from '@angular/core';
55

66
import {
77
CONFIG,

public/docs/_examples/style-guide/ts/04-10/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import { Component } from 'angular2/core';
2+
import { Component } from '@angular/core';
33

44
// #docregion example
55
import { HeroesComponent } from './+heroes/index';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class EntityService { }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class ExceptionService { }

public/docs/_examples/style-guide/ts/04-10/app/shared/filter-text/filter-text.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, EventEmitter, Output } from 'angular2/core';
1+
import { Component, EventEmitter, Output } from '@angular/core';
22

33
@Component({
44
moduleId: module.id,

public/docs/_examples/style-guide/ts/04-10/app/shared/filter-text/filter-text.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class FilterService {

public/docs/_examples/style-guide/ts/04-10/app/shared/init-caps.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Pipe, PipeTransform } from 'angular2/core';
1+
import { Pipe, PipeTransform } from '@angular/core';
22

33
@Pipe({ name: 'initCaps' })
44
export class InitCapsPipe implements PipeTransform {

public/docs/_examples/style-guide/ts/04-10/app/shared/modal/modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from 'angular2/core';
1+
import { Component, OnInit } from '@angular/core';
22

33
import { ModalService } from './modal.service';
44

public/docs/_examples/style-guide/ts/04-10/app/shared/modal/modal.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class ModalService {

public/docs/_examples/style-guide/ts/04-10/app/shared/nav/nav.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from 'angular2/core';
1+
import { Component, OnInit } from '@angular/core';
22

33
import { ModalService } from '../';
44

public/docs/_examples/style-guide/ts/04-10/app/shared/spinner/spinner.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, OnDestroy, OnInit} from 'angular2/core';
1+
import {Component, OnDestroy, OnInit} from '@angular/core';
22

33
import { SpinnerService } from './spinner.service';
44

public/docs/_examples/style-guide/ts/04-10/app/shared/spinner/spinner.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
export interface ISpinnerState { }
44

public/docs/_examples/style-guide/ts/04-10/app/shared/toast/toast.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from 'angular2/core';
1+
import { Component, OnInit } from '@angular/core';
22

33
import { ToastService } from './toast.service';
44

public/docs/_examples/style-guide/ts/04-10/app/shared/toast/toast.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from 'angular2/core';
1+
import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class ToastService {

public/docs/_examples/style-guide/ts/04-13/app/app.component.avoid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import { Component } from 'angular2/core';
2+
import { Component } from '@angular/core';
33

44
// #docregion example
55
import { HeroesComponent } from './+heroes';

public/docs/_examples/style-guide/ts/04-14/app/heroes/heroes.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import { Component, OnInit } from 'angular2/core';
2+
import { Component, OnInit } from '@angular/core';
33

44
import { Hero } from './shared/hero.model';
55
// #docregion example

0 commit comments

Comments
 (0)