X Tutup
Skip to content

Commit a4646db

Browse files
committed
WIP: rename angular2 to @angular
1 parent 017270f commit a4646db

File tree

121 files changed

+211
-217
lines changed

Some content is hidden

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

121 files changed

+211
-217
lines changed

modules/angular2/common/src/common/common_directives.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {CORE_DIRECTIVES} from './directives';
1717
*
1818
* ```typescript
1919
* import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, NgModel, NgForm} from
20-
* 'angular2/common';
20+
* '@angular/common';
2121
* import {OtherDirective} from './myDirectives';
2222
*
2323
* @Component({
@@ -33,7 +33,7 @@ import {CORE_DIRECTIVES} from './directives';
3333
* one could import all the common directives at once:
3434
*
3535
* ```typescript
36-
* import {COMMON_DIRECTIVES} from 'angular2/common';
36+
* import {COMMON_DIRECTIVES} from '@angular/common';
3737
* import {OtherDirective} from './myDirectives';
3838
*
3939
* @Component({

modules/angular2/common/src/common/directives/core_directives.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {NgPlural, NgPluralCase} from './ng_plural';
1919
* Instead of writing:
2020
*
2121
* ```typescript
22-
* import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/common';
22+
* import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from '@angular/common';
2323
* import {OtherDirective} from './myDirectives';
2424
*
2525
* @Component({
@@ -34,7 +34,7 @@ import {NgPlural, NgPluralCase} from './ng_plural';
3434
* one could import all the core directives at once:
3535
*
3636
* ```typescript
37-
* import {CORE_DIRECTIVES} from 'angular2/common';
37+
* import {CORE_DIRECTIVES} from '@angular/common';
3838
* import {OtherDirective} from './myDirectives';
3939
*
4040
* @Component({

modules/angular2/common/src/common/directives/ng_class.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
KeyValueDiffer,
1111
CollectionChangeRecord,
1212
KeyValueChangeRecord
13-
} from 'angular2/core';
13+
} from '@angular/core';
1414
import {isPresent, isString, isArray} from '../../facade/lang';
1515
import {StringMapWrapper, isListLikeIterable} from '../../facade/collection';
1616

@@ -33,8 +33,8 @@ import {StringMapWrapper, isListLikeIterable} from '../../facade/collection';
3333
* ### Example ([live demo](http://plnkr.co/edit/a4YdtmWywhJ33uqfpPPn?p=preview)):
3434
*
3535
* ```
36-
* import {Component} from 'angular2/core';
37-
* import {NgClass} from 'angular2/common';
36+
* import {Component} from '@angular/core';
37+
* import {NgClass} from '@angular/common';
3838
*
3939
* @Component({
4040
* selector: 'toggle-button',

modules/angular2/common/src/common/directives/ng_for.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
TrackByFn,
1111
DefaultIterableDiffer,
1212
CollectionChangeRecord
13-
} from 'angular2/core';
13+
} from '@angular/core';
1414
import {isPresent, isBlank, getTypeNameForDebugging} from '../../facade/lang';
1515
import {BaseException} from "../../facade/exceptions";
1616

modules/angular2/common/src/common/directives/ng_if.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Directive, ViewContainerRef, TemplateRef} from 'angular2/core';
1+
import {Directive, ViewContainerRef, TemplateRef} from '@angular/core';
22
import {isBlank} from '../../facade/lang';
33

44
/**

modules/angular2/common/src/common/directives/ng_plural.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Attribute,
88
AfterContentInit,
99
Input
10-
} from 'angular2/core';
10+
} from '@angular/core';
1111
import {isPresent, NumberWrapper} from '../../facade/lang';
1212
import {Map} from '../../facade/collection';
1313

modules/angular2/common/src/common/directives/ng_style.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import {KeyValueChangeRecord} from "angular2/core";
1+
import {KeyValueChangeRecord} from "@angular/core";
22
import {
33
DoCheck,
44
KeyValueDiffer,
55
KeyValueDiffers,
66
ElementRef,
77
Directive,
88
Renderer
9-
} from 'angular2/core';
9+
} from '@angular/core';
1010
import {isPresent, isBlank} from '../../facade/lang';
1111

1212
/**
@@ -24,8 +24,8 @@ import {isPresent, isBlank} from '../../facade/lang';
2424
* ### Example ([live demo](http://plnkr.co/edit/YamGS6GkUh9GqWNQhCyM?p=preview)):
2525
*
2626
* ```
27-
* import {Component} from 'angular2/core';
28-
* import {NgStyle} from 'angular2/common';
27+
* import {Component} from '@angular/core';
28+
* import {NgStyle} from '@angular/common';
2929
*
3030
* @Component({
3131
* selector: 'ngStyle-example',

modules/angular2/common/src/common/directives/ng_switch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Directive, Host, ViewContainerRef, TemplateRef} from 'angular2/core';
1+
import {Directive, Host, ViewContainerRef, TemplateRef} from '@angular/core';
22
import {isPresent, isBlank, normalizeBlank, CONST_EXPR} from '../../facade/lang';
33
import {ListWrapper, Map} from '../../facade/collection';
44

modules/angular2/common/src/common/directives/ng_template_outlet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Directive, Input, ViewContainerRef, ViewRef, TemplateRef} from 'angular2/core';
1+
import {Directive, Input, ViewContainerRef, ViewRef, TemplateRef} from '@angular/core';
22
import {isPresent} from '../../facade/lang';
33

44
/**

modules/angular2/common/src/common/forms.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
* to read information
88
* from the form DOM elements.
99
*
10-
* This module is not included in the `angular2` module; you must import the forms module
11-
* explicitly.
12-
*
10+
* Forms providers are not included in default providers; you must import these providers explicitly.
1311
*/
1412
export {AbstractControl, Control, ControlGroup, ControlArray} from './forms/model';
1513

0 commit comments

Comments
 (0)
X Tutup