5244 Commits

Author SHA1 Message Date
Tobias Bosch
e4e9dbe33d feat(compiler): integrate compiler with view engine - change detection tests work ()
Included refactoring:
- make ViewData.parentIndex point to component provider index
- split NodeType.Provider into Provider / Directive / Pipe
- make purePipe take the real pipe as argument to detect changes
- order change detection:
  1) directive props
  2) renderer props

Part of 

PR Close 
2017-02-13 17:02:00 -06:00
Alex Eagle
5279d06e88 ci: re-format sources ()
PR Close 
2017-02-10 19:05:45 -06:00
Miško Hevery
563334e2c9 ci: remove left over fdescribe 2017-02-10 19:05:00 -06:00
Miško Hevery
b565301186 fix(compiler): REVERT allow absolute style urls ()
This reverts commit 6b9aa2ca3dd6cacb8c010406596f715eec6fddbd.
2017-02-10 18:23:58 -06:00
Dzmitry Shylovich
1ece7366c8 fix(forms): getRawValue should correctly work with nested FormGroups/Arrays ()
Closed 

PR Close 
2017-02-10 15:04:25 -06:00
Victor Berchet
7ac38aa357 feat(compiler): add support for source map generation ()
fixes 

PR Close 
2017-02-10 15:04:15 -06:00
Dzmitry Shylovich
53cf2ec573 fix(platform-browser): should only add styles with native encapsulation in shadow DOM ()
Closes 

PR Close 
2017-02-10 15:03:20 -06:00
Dzmitry Shylovich
1cfbefebe3 fix(platform-browser): should not throw for debug attrs containing $ ()
Closes 

PR Close 
2017-02-10 15:03:05 -06:00
Dzmitry Shylovich
e5a144d902 fix(compiler): improve error msg for unknown properties on ()
ng-container/ng-content

Closes 

PR Close 
2017-02-10 15:03:05 -06:00
Dzmitry Shylovich
2c6dab970b fix(compiler): improve error message for unknown elements () 2017-02-10 15:03:05 -06:00
Alex Rickabaugh
9e28568a8f feat(platform-server): Implement PlatformLocation for platformServer() ()
This gives server-side apps a current URL including hash, but doesn't implement a state stack,
so back-and-forward navigation isn't possible.

PR Close 
2017-02-10 15:03:05 -06:00
Alex Eagle
03e855ae8f build: allow users to specify --strictNullChecks ()
PR Close 
2017-02-10 14:10:03 -06:00
Matias Niemelä
96073e51c3 refactor(animations): introduce @angular/animation module ()
PR Close: 
2017-02-10 14:10:03 -06:00
Tobias Bosch
baa654a234 feat(compiler): integrate compiler with view engine - main integration tests work ()
Part of 

PR Close 
2017-02-10 14:10:03 -06:00
Mathou54
dfe29934b6 test(forms): test undefined as argument to forms ()
PR Close 
2017-02-10 14:10:03 -06:00
Bowen Ni
44bb337acc fix(compiler): disable non-components as an entry component ()
PR Close 
2017-02-09 14:45:49 -08:00
Alex Eagle
b9d293af03 build: first pass of de-duplicating tsconfig.json content ()
PR Close 
2017-02-09 14:32:40 -08:00
Chuck Jazdzewski
4da7925ad5 feat(common): added typed overloaded for AsyncPipe.transform() ()
BREAKING CHANGE: Classes that derive from `AsyncPipe` and override
`transform()` might not compile correctly. Use of  `async` pipe in
templates is unaffected.

Mitigation: Update derived classes of `AsyncPipe` that override
`transform()` to include the type parameter overloads.

Related to 

PR Close 
2017-02-09 14:32:39 -08:00
Dzmitry Shylovich
6b9aa2ca3d fix(compiler): allow absolute style urls ()
Closes 

PR Close 
2017-02-09 14:32:39 -08:00
Bowen Ni
a696f4aade fix(compiler): improve error messages in aot compiler ()
Do not print the stack trace when the component is not declared in the module.

PR Close 
2017-02-09 14:32:39 -08:00
Victor Berchet
bb4db2d8f3 feat(compiler): add target locale to the translation bundles ()
PR Close 
2017-02-09 14:32:39 -08:00
Miško Hevery
4676df5833 fix(http): REVERT: remove dots from jsonp callback name ()
This reverts commit 9e5617e41e222d29c3952ba71a401804030cd153.
2017-02-09 15:34:12 -06:00
FrozenPandaz
45cc444154 fix(core): Remove ChangeDetectorRef Paramter from KeyValueDifferFactory and IterableDifferFactory ()
BREAKING CHANGE:

- `KeyValueDifferFactory` and `IterableDifferFactory` no longer have `ChangeDetectorRef` as 
  a parameter. It was not used and has been there for historical reasons. If you call 
  `DifferFactory.create(...)` remove the `ChangeDetectorRef` argument.
2017-02-09 13:33:44 -08:00
Victor Berchet
881dce841f refactor(compiler): Load the translation bundle only once in the i18n html parser ()
fixes 
2017-02-09 12:08:23 -06:00
Vikram Subramanian
c4817988ca feat(core): add isStable Observable property to ApplicationRef to indicate when it's stable and unstable ()
PR Close 
2017-02-09 12:07:33 -06:00
Miško Hevery
c871af7b5a chore(release): cut the 4.0.0-beta.7 release 2017-02-09 09:36:10 -08:00
Miško Hevery
a7688d27f2 refactor(core): change typedef of NodeCheckFn to pass tsickle 2017-02-08 18:05:21 -06:00
Tobias Bosch
24af51a623 fix(core): view engine - fix perf regressions ()
- Make sure `NodeDef`s don’t fall into dictionary mode.
- Use strategy pattern to add debug information / checks, instead of constantly checking for `isDevMode`.
- introduce a very light weight `RendererV2` interface to not have duplicate
  code paths for direct and non direct rendering

The strategy pattern is implemented via the new `Services` object.

Part of 

PR Close 
2017-02-08 14:42:22 -06:00
Tobias Bosch
f6b5965a63 fix(benchmarks): don’t force gc on the profile buttons ()
This causes v8 to depotimize functions permanently in same cases.
2017-02-08 14:42:01 -06:00
Alex Eagle
ef32e6b0d0 fix: build and test fixes for TS 2.1 () 2017-02-08 11:32:40 -06:00
Alex Eagle
5c431cee02 build: remove post-processing of .d.ts files ()
Note that the duplication in tsconfig.json files will be fixed in a followup CL now that we have tsconfig inheritance

BREAKING CHANGE: Angular 4 will support only TypeScript 2.1, so we no longer provide backwards compatibility to TS 1.8.
2017-02-08 11:32:34 -06:00
Miško Hevery
c33fda2607 perf: Don’t subclass Error; resulting in smaller binary ()
Subclassing errors is problematic since Error returns a
new instance. All of the patching which we do than prevent
proper application of source maps.

PR Close 
2017-02-07 19:18:26 -06:00
Misko Hevery
3c2842be96 refactor: remove unneeded output_emitter_utils () 2017-02-07 19:17:58 -06:00
Georgios Kalpakas
94312f0980 perf(upgrade): unregister $doCheck watcher when destroying upgraded component ()
PR Close 
2017-02-07 16:16:29 -06:00
mgechev
a378aab9aa docs(compiler): incorrect method reference ()
PR Close 
2017-02-07 12:45:15 -06:00
Georgios Kalpakas
1e3dd3dd9b fix(upgrade): pass correct values to ngOnChanges for interpolation bindings ()
Previously, the `previousValue` and `currentValue` arguments passed to the
`SimpleChange` constructor were swapped for interpolation bindings.

This commit also refactors the code, so that interpolation bindings and property
bindings share the same implementation, and fixes some broken tests (that hide
failures by allowing the `$exceptionHandler` to swallow thrown exceptions).

PR Close 
2017-02-07 12:45:14 -06:00
Gerd Jungbluth
701074cf89 docs(core): fix typo ()
Replace `than` with `then`.

PR Close 
2017-02-07 12:45:14 -06:00
NFM
d0366542fb docs(router): fix typos ()
PR Close 
2017-02-07 12:45:14 -06:00
Marc Laval
e58d683931 fix(compiler-cli): prevent ng-xi18n from emitting the compilation output ()
fixes 

PR Close 
2017-02-07 11:56:23 -06:00
Peter Bacon Darwin
80b66edfa7 docs(zone): fix whitespace around backtick code
If there is no leading empty line then the markdown renderers get confused.
2017-02-06 12:08:57 -08:00
Georgios Kalpakas
41db177d0c test(upgrade): test projection on downgraded components with structural directives ()
Brings the tests of  to master.

PR Close 
2017-02-03 15:08:26 -06:00
Tobias Bosch
14d7844b2b feat(core): view engine - integrate with ComponentFactory ()
`ComponentFactory`s can now be created from a `ViewDefinitionFactory` via
`RefFactory.createComponentFactory`.

This commit also:
- splits `Services` into `Refs` and `RootData`
- changes `ViewState` into a bitmask
- implements `ViewContainerRef.move`

Part of 

PR Close 
2017-02-03 15:07:12 -06:00
Chuck Jazdzewski
388afa414e test(compiler): add integration like tests to compiler unit tests ()
Closes PR 

PR Close 
2017-02-03 15:06:51 -06:00
Misko Hevery
1961332f26 chore(release): cut the 4.0.0-beta.6 release 2017-02-02 21:01:27 -08:00
Miško Hevery
69a4bb0bcd doc: standardize deprecation of preserveQueryParams (4.0 only) ()
PR closes 
2017-02-01 16:48:19 -08:00
Miško Hevery
a7479f657a fix: ngModel should use rxjs/symbol/observable to detect observable ()
PR closes 
2017-02-01 16:47:41 -08:00
Tobias Bosch
a05e50fda3 feat(core): view engine - add missing DI features ()
Part of 

PR Close 
2017-02-01 14:16:01 -06:00
Tobias Bosch
ae7f5f37d2 refactor(core): view engine - remove ViewData.parentDiIndex ()
Instead, calculate it on the fly

Part of 
2017-02-01 14:15:47 -06:00
Tobias Bosch
45e1e36477 feat(core): view engine - add support for OnPush and detached views. ()
Part of 

PR Close 
2017-02-01 14:15:47 -06:00
Tobias Bosch
08ff67ea11 feat(core): view engine - add WrappedValue support ()
Part of 
2017-02-01 14:15:38 -06:00