repackaging: all the repackaging changes squashed

This commit is contained in:
Igor Minar
2016-04-28 17:50:03 -07:00
committed by Misko Hevery
parent 505da6c0a8
commit a66cdb469f
860 changed files with 7869 additions and 4985 deletions

View File

@ -1,4 +1,4 @@
import {DebugElement} from 'angular2/core';
import {DebugElement} from '@angular/core';
var debugElement: DebugElement;
var predicate: any;

View File

@ -4,7 +4,7 @@ import {
forwardRef,
resolveForwardRef,
ForwardRefFn
} from 'angular2/core';
} from '@angular/core';
// #docregion forward_ref_fn
var ref = forwardRef(() => Lock);
@ -29,4 +29,4 @@ expect(door.lock instanceof Lock).toBe(true);
var ref = forwardRef(() => "refValue");
expect(resolveForwardRef(ref)).toEqual("refValue");
expect(resolveForwardRef("regularValue")).toEqual("regularValue");
// #enddocregion
// #enddocregion

View File

@ -1,6 +1,6 @@
import {bootstrap} from 'angular2/platform/browser';
import {NG_VALIDATORS} from 'angular2/common';
import {Provider} from 'angular2/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
import {NG_VALIDATORS} from '@angular/common';
import {Provider} from '@angular/core';
let MyApp: Function = null;
let myValidator: any = null;

View File

@ -1,5 +1,5 @@
import {Component, provide} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {Component, provide} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
import {Observable, Subscriber} from 'rxjs/Rx';
// #docregion AsyncPipe

View File

@ -15,7 +15,7 @@
Loading...
</example-app>
<script>
var filename = 'angular2/examples/core/pipes/ts/async_pipe/async_pipe_example';
var filename = '@angular/examples/core/pipes/ts/async_pipe/async_pipe_example';
System.import(filename).then(function(m) {
m.main();
}, console.error.bind(console));

View File

@ -1,5 +1,5 @@
import {Component, provide} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {Component, provide} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
// #docregion DatePipe
@Component({

View File

@ -15,7 +15,7 @@
Loading...
</example-app>
<script>
var filename = 'angular2/examples/core/pipes/ts/date_pipe/date_pipe_example';
var filename = '@angular/examples/core/pipes/ts/date_pipe/date_pipe_example';
System.import(filename).then(function(m) {
m.main();
}, console.error.bind(console));

View File

@ -15,7 +15,7 @@
Loading...
</example-app>
<script>
var filename = 'angular2/examples/core/pipes/ts/json_pipe/json_pipe_example';
var filename = '@angular/examples/core/pipes/ts/json_pipe/json_pipe_example';
System.import(filename).then(function(m) {
m.main();
}, console.error.bind(console));

View File

@ -1,5 +1,5 @@
import {Component, provide} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {Component, provide} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
// #docregion JsonPipe
@Component({

View File

@ -15,7 +15,7 @@
Loading...
</example-app>
<script>
var filename = 'angular2/examples/core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example';
var filename = '@angular/examples/core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example';
System.import(filename).then(function(m) {
m.main();
}, console.error.bind(console));

View File

@ -1,5 +1,5 @@
import {Component, provide} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {Component, provide} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
// #docregion LowerUpperPipe
@Component({

View File

@ -15,7 +15,7 @@
Loading...
</example-app>
<script>
var filename = 'angular2/examples/core/pipes/ts/number_pipe/number_pipe_example';
var filename = '@angular/examples/core/pipes/ts/number_pipe/number_pipe_example';
System.import(filename).then(function(m) {
m.main();
}, console.error.bind(console));

View File

@ -1,5 +1,5 @@
import {Component, provide} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {Component, provide} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
// #docregion NumberPipe
@Component({

View File

@ -15,7 +15,7 @@
Loading...
</example-app>
<script>
var filename = 'angular2/examples/core/pipes/ts/slice_pipe/slice_pipe_example';
var filename = '@angular/examples/core/pipes/ts/slice_pipe/slice_pipe_example';
System.import(filename).then(function(m) {
m.main();
}, console.error.bind(console));

View File

@ -1,5 +1,5 @@
import {Component, provide} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {Component, provide} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
// #docregion SlicePipe_string
@Component({

View File

@ -1,5 +1,5 @@
import {Component} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {Component} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
// #docregion bootstrap
@Component({selector: 'my-app', template: 'Hello {{ name }}!'})

View File

@ -1,4 +1,4 @@
import {Component, Attribute, Directive, Pipe} from 'angular2/core';
import {Component, Attribute, Directive, Pipe} from '@angular/core';
var CustomDirective: Function;

View File

@ -1,5 +1,5 @@
import {Component, createPlatform, coreLoadAndBootstrap, ReflectiveInjector} from 'angular2/core';
import {BROWSER_PROVIDERS, BROWSER_APP_PROVIDERS} from 'angular2/platform/browser';
import {Component, createPlatform, coreLoadAndBootstrap, ReflectiveInjector} from '@angular/core';
import {BROWSER_PROVIDERS, BROWSER_APP_STATIC_PROVIDERS} from '@angular/platform-browser';
var appProviders: any[] = [];
@ -10,6 +10,6 @@ class MyApp {
var platform = createPlatform(ReflectiveInjector.resolveAndCreate(BROWSER_PROVIDERS));
var appInjector =
ReflectiveInjector.resolveAndCreate([BROWSER_APP_PROVIDERS, appProviders], platform.injector);
ReflectiveInjector.resolveAndCreate([BROWSER_APP_STATIC_PROVIDERS, appProviders], platform.injector);
coreLoadAndBootstrap(appInjector, MyApp);
// #enddocregion

View File

@ -1,4 +1,4 @@
import {Component} from 'angular2/core';
import {Component} from '@angular/core';
@Component({selector: 'my-component', template: '<h1>My Component</h1>'})
export class MyComponent {

View File

@ -1,6 +1,6 @@
// #docregion enableProdMode
import {enableProdMode} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {enableProdMode} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
import {MyComponent} from './my_component';
enableProdMode();