2368 Commits

Author SHA1 Message Date
Trotyl
010e35d995 feat(router): warn if navigation triggered outside Angular zone (#24959)
closes #15770, closes #15946, closes #24728

PR Close #24959
2018-09-05 09:35:14 -07:00
Alex Rickabaugh
a417b2b419 fix(ivy): detect frozen flyweight objects in definitions and unfreeze (#25755)
defineComponent() and friends can return a flyweight EMPTY object for
specific fields when they contain no data. InheritDefinitionFeature
was attempting to write into these flyweight objects, which have been
protected with Object.freeze().

This commit adds detection to InheritDefinitionFeature to identify the
frozen objects.

PR Close #25755
2018-09-05 09:27:41 -07:00
Zhicheng Wang
cf01a7f5d4 docs(API): 翻译完了 Renderer2 2018-09-05 10:48:08 +08:00
Zhicheng Wang
d589eef668 docs(API): 翻译完了 test/async 2018-09-05 10:10:50 +08:00
Zhicheng Wang
9e40bf8e63 docs(API): 翻译完了 ValidatorFn 2018-09-05 10:08:10 +08:00
Zhicheng Wang
badf927f37 docs(API): 翻译完了 NgSelectOption 2018-09-05 09:46:21 +08:00
Zhicheng Wang
7b2226516a docs(API): 翻译完了 SimpleChange 2018-09-05 09:22:22 +08:00
Zhicheng Wang
7c7733c3af docs(API): 翻译完了 PipeTransform 2018-09-05 09:15:35 +08:00
Igor Minar
51c0d9cae9 style(ivy): remove unused ivy code (#25780)
PR Close #25780
2018-09-04 12:12:04 -07:00
Igor Minar
08dfbc5475 fix(ivy): reexport __POST_NGCC__ symbols as private to prevent DCE in FESM (#25780)
While creating FESM files, rollup usually drops all unused symbols.
All *__POST_NGCC__ are unused unless ngcc rewires stuff. To prevent this DCE
we reexport them as private symbols. If ngcc is not used, these symbols will
be dropped when we optimize an application bundle.

We don't have an infrastructure to test this fix, so I just manually inspected
the bundles before and after to verify that the fix works.

PR Close #25780
2018-09-04 12:12:04 -07:00
Alex Rickabaugh
cc29b9cf93 fix(ivy): use globally unique names for i18n constants (#25689)
Closure compiler requires that the i18n message constants of the form

const MSG_XYZ = goog.getMessage('...');

have names that are unique across an entire compilation, even if the
variables themselves are local to a given module. This means that in
practice these names must be unique in a codebase.

The best way to guarantee this requirement is met is to encode the
relative file name of the file into which the constant is being written
into the constant name itself. This commit implements that solution.

PR Close #25689
2018-09-04 12:09:29 -07:00
Zhicheng Wang
84f95e5864 docs(API): 翻译完了 DomSanitizer 2018-09-04 17:20:54 +08:00
Zhicheng Wang
8e6ce058ae docs(API): 翻译完了 ParamMap 2018-09-04 16:49:14 +08:00
Zhicheng Wang
ee075b2bbd docs(API): 翻译完了 QueryList 2018-09-04 16:42:02 +08:00
Zhicheng Wang
d9a50a8452 docs(API): 翻译完了 HttpResponse 2018-09-04 16:37:03 +08:00
Zhicheng Wang
2a1fbec879 docs(API): 翻译完了 forms/Form 2018-09-04 16:00:05 +08:00
Zhicheng Wang
0d7690251b docs(API): 翻译完了 ComponentFactory 2018-09-04 15:56:04 +08:00
Zhicheng Wang
8dbe7ff025 docs(API): 翻译完了 formatDate 2018-09-04 15:48:34 +08:00
Zhicheng Wang
284e6a7319 docs(API): 翻译完了 ChangeDetectorRef 2018-09-04 15:32:26 +08:00
Zhicheng Wang
3819d7de3b docs(API): 翻译完了 common/http 2018-09-04 15:04:47 +08:00
Zhicheng Wang
719650b41f docs(API): 翻译完了 CommonModule 2018-09-04 14:56:11 +08:00
Zhicheng Wang
a510ed5312 docs(API): 翻译完了 JsonPipe 2018-09-04 14:54:23 +08:00
Zhicheng Wang
adb6be6a02 docs(API): 翻译完了 SlicePipe 2018-09-04 14:50:06 +08:00
Zhicheng Wang
a033f25b13 docs(API): 翻译完了大部分路由器事件 2018-09-04 14:36:53 +08:00
Zhicheng Wang
0d7988992b docs(API): 翻译完了所有路由守卫 2018-09-04 14:04:10 +08:00
Zhicheng Wang
06368682ef docs(API): 翻译完了 HttpRequest 2018-09-04 13:55:45 +08:00
Zhicheng Wang
785aecb6dd docs(API): 翻译完了 HttpInterceptor 2018-09-04 13:33:50 +08:00
Zhicheng Wang
c3ec312159 docs(API): 翻译完了 FormControlName 2018-09-04 13:21:25 +08:00
Zhicheng Wang
201976fd31 docs(API): 翻译完了各个生命周期钩子 2018-09-04 12:32:48 +08:00
Zhicheng Wang
d1985fc7d1 docs(API): 翻译完了 HttpParams 2018-09-04 11:05:45 +08:00
Zhicheng Wang
82ba447ca0 docs(API): 翻译完了 FormBuilder 2018-09-04 10:47:31 +08:00
Zhicheng Wang
986872ecbd docs(API): 翻译完了 TemplateRef 2018-09-04 10:39:27 +08:00
Zhicheng Wang
46a2608476 docs(API): 翻译完了 RouterLinkActive 2018-09-04 10:25:36 +08:00
Zhicheng Wang
e8d4f26644 docs(API): 翻译完了 DecimalPipe 和 CurrencyPipe 2018-09-04 10:12:28 +08:00
Zhicheng Wang
ec886a90ef docs(API): 翻译完了 BrowserModule 2018-09-04 09:31:32 +08:00
Zhicheng Wang
391aed864a docs(API): 翻译完了 Location 2018-09-04 09:19:39 +08:00
Zhicheng Wang
eb075b665f docs(API): 翻译完了 NgTemplateOutlet 2018-09-04 08:43:00 +08:00
Zhicheng Wang
6292866c98 docs(API): 翻译完了 ViewContainerRef 2018-09-03 08:54:32 +08:00
Zhicheng Wang
3fc7bb2ab4 docs(API): 翻译完了 AsyncPipe 2018-09-02 22:33:49 +08:00
Zhicheng Wang
78248db322 docs(API): 翻译完了 NgForm 2018-09-02 22:28:11 +08:00
Zhicheng Wang
fe5c6d0a11 docs(API): 翻译完了 NgSwitch 2018-09-02 22:09:03 +08:00
Zhicheng Wang
6312e38a63 docs(API): 翻译完了 HttpHeaders 2018-09-02 19:31:59 +08:00
Zhicheng Wang
8cea4a3646 docs(API): 翻译完了 Validators 2018-09-02 19:23:29 +08:00
Zhicheng Wang
de47500c53 docs(API): 翻译完了 RouterOutlet 2018-09-02 11:53:17 +08:00
Zhicheng Wang
63127dd0c0 docs(API): 翻译完了 NgStyle 2018-09-02 11:31:35 +08:00
Zhicheng Wang
c448443c70 docs(API): 翻译完了 XxxCasePipe 2018-09-02 11:28:43 +08:00
Zhicheng Wang
81b322a2fc docs(API): 翻译完了 OnInit 2018-09-02 11:20:28 +08:00
Zhicheng Wang
3bfa4e5daa docs(API): 翻译完了 ElementRef 2018-09-02 11:11:49 +08:00
Zhicheng Wang
59425a1e5e docs(API): 翻译完了 HttpClientModule 2018-09-01 21:44:38 +08:00
Zhicheng Wang
10ddb2449f docs(API): 翻译完了 RouterModule 2018-09-01 20:55:38 +08:00