7dcca307d9
fix(closure): quote date pattern aliases ( #13012 )
...
Quota the pattern aliases to prevent closure renaming. These are quoted in DatePipe and also need to be quoted here.
2016-11-21 11:45:48 -08:00
491d5a22a9
refactor(compiler): allow control of StaticSymbol lifetime ( #12986 )
2016-11-18 16:58:14 -08:00
44572f114f
refactor(ngUpgrade): Small cleanup with Testability API and resumeBootstrap ( #12926 )
...
* With non-static ngUpgrade apps, callbacks to `whenStable` were being invoked with the wrong
context
* With non-static ngUpgrade apps, `resumeBootstrap` was being run outside the NgZone
* Remove redundent `whenStableContext` variable
Neither of the first two problems were actually causing bugs (as far as I know), but they *might*
have caused problems in the future.
Inspired by https://github.com/angular/angular/pull/12910 , but for non-static apps.
2016-11-18 14:30:47 -08:00
1ef4696cb7
fix(upgrade): call ng1 lifecycle hooks ( #12875 )
2016-11-18 13:46:49 -08:00
59d2b4c831
refactor(compiler): further minor fixes
2016-11-18 10:04:14 -08:00
2a5bd2f345
refactor(compiler): Reintroduce ReflectorHost
and move Extractor
into @angular/compiler
2016-11-18 10:04:14 -08:00
3c06a5dc25
refactor(comiler): various cleanups
2016-11-18 10:04:14 -08:00
adeea5d86a
refactor(compiler): renames
...
- `NgHost` to `CompilerHost`
- `AotCompilerHost.resolveFileToImport` to `AotCompilerHost.fileNameToModuleName`
- `AotCompilerHoset.resolveImportToFile` to `AotCompilerHost.moduleNameToFileName`
2016-11-18 10:04:14 -08:00
dddbb1c1cb
refactor(tsc-wrapped): collect all exported functions and classes and bump metadata version from 1 to 2
...
This is needed to resolve symbols without `.d.ts` files.
This bumps the version of the metadata from 1 to 2.
This adds logic into `ng_host.ts` to automatically upgrade
version 1 to version 2 metadata by adding the exported symbols
from the `.d.ts` file.
2016-11-18 10:04:14 -08:00
bccf0e69dc
fix(compiler): fix versions of @angular/tsc-wrapped
2016-11-18 10:04:14 -08:00
b15039d228
refactor(compiler): move symbol extraction to AotCompiler
2016-11-18 10:04:14 -08:00
2235048432
refactor(compiler): add createAotCompiler
factory
...
Also adds 2 more methods to the `AotCompilerHost`:
- `loadResource`
- `resolveFileToImport`
2016-11-18 10:04:14 -08:00
484119e59f
refactor(compiler): remove asset:
urls
...
These urls were just relicts from Dart.
2016-11-18 10:04:14 -08:00
24099bdbd2
refactor(compiler): move findDeclaration
into the StaticReflector
...
Previously, this was part of the `AotCompilerHost`.
The `AotCompilerHost` is now also greatly simplified.
2016-11-18 10:04:14 -08:00
912ca44979
refactor(compiler): move static_reflector
into @angular/compiler
and rename files
...
- `src/runtime_compiler.ts` -> `src/jit/compiler.ts`
- `src/compiler.ts` -> `src/jit/compiler_factory.ts`
- `src/offline_compiler` -> `src/aot/compiler.ts`
Part of #12867
2016-11-18 10:04:14 -08:00
664a6273e1
feature(tsc-wrapped): add option for closure compiler JSDoc annotations
2016-11-18 09:37:40 -08:00
fc5ac1ebc4
fix(benchmarks): use sanitized style values ( #12943 )
2016-11-17 15:18:10 -08:00
ad20d7d260
fix(router): guards restor an incorrect url when used with skipLocationChange
...
Closes #12825
2016-11-17 14:10:59 -08:00
602522beb2
fix(router): support redirects to named outlets
...
Closes #12740 , #9921
2016-11-17 14:10:59 -08:00
f340e1a414
fix(tools): fix error when running test.sh ( #12927 )
2016-11-16 13:35:31 -08:00
481c9b3258
refactor(compiler): allows synchronous retrieving of metadata ( #12908 )
...
Allows non-normalized metadata to be retrieved synchronously.
Related to #7482
2016-11-16 10:22:11 -08:00
8b2dfb2eca
fix(core): support ngTemplateOutlet
in production mode ( #12921 )
...
Fixes #12911
2016-11-16 10:00:18 -08:00
824ea8406c
docs(upgrade/static): improve API docs with examples
...
Closes #12717
2016-11-16 09:18:17 -08:00
1f96a93f59
chore(public_api): remove Angular 1 types from upgrade/static API
2016-11-16 09:18:10 -08:00
009d545787
chore(examples): add upgrade/static example
2016-11-16 09:18:10 -08:00
53c25210a6
chore(examples): support upgrade/static examples
2016-11-16 09:18:10 -08:00
927aa69726
fix(router): add a banner file for the router ( #12919 )
2016-11-16 09:17:19 -08:00
ce89039036
fix(platform_browser): fix disableDebugTools() ( #12918 )
2016-11-16 09:16:40 -08:00
42198cd7d5
fix(ngUpgrade): make AoT ngUpgrade work with the testability API and resumeBootstrap() ( #12910 )
2016-11-16 01:04:56 -08:00
773b31de8f
fix(router): should not create a route state if navigation is canceled ( #12868 )
...
Closes #12776
2016-11-15 19:00:20 -08:00
f79b320fc4
refactor(forms): remove facade ( #12558 )
2016-11-15 18:48:34 -08:00
6a212fd561
fix(router): removes a peer dependency from router to upgrade
2016-11-15 18:37:08 -08:00
be010a292a
fix(animations): only pass in same typed players as previous players into web-animations ( #12907 )
...
Closes #12907
2016-11-15 17:47:21 -08:00
7c36e7f956
chore(router): remove @angular/upgrade peer dep ( #12896 )
2016-11-15 14:00:11 -08:00
13ba2f90b9
refactor(http): remove all facade methods from http module ( #12870 )
2016-11-15 09:19:14 -08:00
75277cd94b
fix(tsickle): support ctorParams in function closure ( #12876 )
...
See https://github.com/angular/tsickle/issues/261 for context.
2016-11-15 09:19:00 -08:00
46d150266b
feat(router_link): add skipLocationChange and replaceUrl inputs ( #12850 )
2016-11-14 18:30:13 -08:00
1b5384ee54
feat(core): expose ViewRef
as ChangeDetectorRef
...
closes #12722
This is helpful when manually dirty checking embedded views.
2016-11-14 17:01:41 -08:00
9f7d32a326
feat(core): add attachView
/ detachView
to ApplicationRef
...
This feature is useful to allow components / embedded views
to be dirty checked if they are not placed in any `ViewContainer`.
Closes #9293
2016-11-14 17:01:35 -08:00
9de76ebfa5
fix(animations): retain styling when transition destinations are changed ( #12208 )
...
Closes #9661
Closes #12208
2016-11-14 16:59:06 -08:00
46023e4792
fix(select): allow for null values in HTML select options bound with ngValue
...
closes #12829
2016-11-14 16:47:14 -08:00
b55aaf094f
fix: allow for null values in HTML select options bound with ngValue
...
This corrects the case of <option [ngValue]="null"> binding a string like "{0: null}" to the model instead of an actual null object.
Closes #10349
2016-11-14 16:47:09 -08:00
d90b622fa4
fix: allow for null values in HTML select options bound with ngValue
...
This corrects the case of <option [ngValue]="null"> binding a string like "{0: null}" to the model instead of an actual null object.
Closes #10349
2016-11-14 16:47:09 -08:00
79e2bb9291
refactor(core): remove dead code ( #12871 )
2016-11-14 16:44:25 -08:00
efbbefd353
fix(platform-browser): enable AOT
...
closes #12783
2016-11-14 12:57:11 -08:00
c2fae72bc6
feat(router): register router with ngprobe
2016-11-14 12:57:05 -08:00
7908679c4b
fix(compiler): assert xliff messages have translations
...
fixes #12815
closes #12604
2016-11-14 12:55:56 -08:00
9ed9ff40b3
test(compiler): improve xliff tests
2016-11-14 12:55:48 -08:00
2f14415836
fix(compiler): updates hash algo for xmb/xtb files
2016-11-14 12:55:48 -08:00
76e4911e8b
fix(core): fix placeholders handling in i18n.
...
Prior to this commit, translations were built in the serializers. This
could not work as a single translation can be used for different source
messages having different placeholder content.
Serializers do not try to replace the placeholders any more.
Placeholders are replaced by the translation bundle and the source
message is given as parameter so that the content of the placeholders is
taken into account.
Also XMB ids are now independent of the expression which is replaced by
a placeholder in the extracted file.
fixes #12512
2016-11-14 12:55:48 -08:00