Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// #docregion
/* recommended */

// app.component.ts
import { Component } from '@angular/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// #docregion
/* recommended */
import { Injectable } from '@angular/core';

import { HEROES } from './mock-heroes';
Expand Down
93 changes: 0 additions & 93 deletions public/docs/_examples/style-guide/ts/01-01/app/placeholder.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #docregion
import { Component } from 'angular2/core';
import { Component } from '@angular/core';
// #docregion example
/* avoid */

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #docregion
import { Component } from 'angular2/core';
import { Component } from '@angular/core';
// #docregion example
/* avoid */

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #docregion
import { Directive } from 'angular2/core';
import { Directive } from '@angular/core';
// #docregion example
/* avoid */

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #docregion
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
// #docregion example
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #docregion
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
// #docregion example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// #docregion example
/* avoid */

import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #docregion
// #docregion example
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// #docregion example
/* avoid */

import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class ToastService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #docregion
// #docregion example
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class ToastService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// #docregion example
/* avoid */

import {Injectable} from 'angular2/core';
import {Http, Response} from 'angular2/http';
import {Injectable} from '@angular/core';
import {Http, Response} from '@angular/http';

import {Hero} from './hero.model';
import {ExceptionService, SpinnerService, ToastService} from '../../shared';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// #docregion
// #docregion example
import { Injectable } from 'angular2/core';
import { Http, Response } from 'angular2/http';
import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';

import { Hero } from './hero.model';
import { ExceptionService, SpinnerService, ToastService } from '../../shared';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class ExceptionService { }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, OnDestroy, OnInit} from 'angular2/core';
import { Component, OnDestroy, OnInit } from '@angular/core';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

export interface ISpinnerState { }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from 'angular2/core';
import { Component, OnInit } from '@angular/core';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class ToastService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// #docregion example
/* avoid */

import { ExceptionService, SpinnerService, ToastService } from '../../../app/shared';
import { Http, Response } from 'angular2/http';
import { Injectable } from 'angular2/core';
import { ExceptionService, SpinnerService, ToastService } from '../../shared';
import { Http, Response } from '@angular/http';
import { Injectable } from '@angular/core';
import { Hero } from './hero.model';
// #enddocregion example

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// #docregion
// #docregion example
import { Injectable } from 'angular2/core';
import { Http, Response } from 'angular2/http';
import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';

import { Hero } from './hero.model';
import { ExceptionService, SpinnerService, ToastService } from '../../../app/shared';
import { ExceptionService, SpinnerService, ToastService } from '../../shared';
// #enddocregion example

@Injectable()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class ExceptionService { }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, OnDestroy, OnInit} from 'angular2/core';
import { Component, OnDestroy, OnInit } from '@angular/core';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

export interface ISpinnerState { }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from 'angular2/core';
import { Component, OnInit } from '@angular/core';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class ToastService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// #docregion example
/* avoid */

import { Component, OnInit } from 'angular2/core';
import { Component, OnInit } from '@angular/core';

import { CONFIG } from '../shared/config';
import { EntityService } from '../shared/entity.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// #docplaster
// #docregion
// #docregion example
import { Component, OnInit } from 'angular2/core';
import { Component, OnInit } from '@angular/core';

import {
CONFIG,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #docregion
import { Component } from 'angular2/core';
import { Component } from '@angular/core';

// #docregion example
import { HeroesComponent } from './+heroes/index';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Injectable} from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class EntityService { }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class ExceptionService { }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, EventEmitter, Output } from 'angular2/core';
import { Component, EventEmitter, Output } from '@angular/core';

@Component({
moduleId: module.id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class FilterService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Pipe, PipeTransform } from 'angular2/core';
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({ name: 'initCaps' })
export class InitCapsPipe implements PipeTransform {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from 'angular2/core';
import { Component, OnInit } from '@angular/core';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class ModalService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from 'angular2/core';
import { Component, OnInit } from '@angular/core';

import { ModalService } from '../';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, OnDestroy, OnInit} from 'angular2/core';
import {Component, OnDestroy, OnInit} from '@angular/core';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

export interface ISpinnerState { }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from 'angular2/core';
import { Component, OnInit } from '@angular/core';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from 'angular2/core';
import { Injectable } from '@angular/core';

@Injectable()
export class ToastService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #docregion
import { Component } from 'angular2/core';
import { Component } from '@angular/core';

// #docregion example
import { HeroesComponent } from './+heroes';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #docregion
import { Component, OnInit } from 'angular2/core';
import { Component, OnInit } from '@angular/core';

import { Hero } from './shared/hero.model';
// #docregion example
Expand Down
Loading