Alex Eagle
b9d293af03
build: first pass of de-duplicating tsconfig.json content ( #14369 )
...
PR Close #14369
2017-02-09 14:32:40 -08:00
Alex Eagle
5c431cee02
build: remove post-processing of .d.ts files ( #13294 )
...
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
Dzmitry Shylovich
cd3901f774
fix(platform-browser): remove style nodes on destroy ( #13744 )
...
Closes #11746
PR Close #13744
2017-01-29 12:10:44 -06:00
Dzmitry Shylovich
a64c9b5d5b
refactor(platform-browser): polishing ( #13744 )
2017-01-29 12:10:39 -06:00
Dimitri Benin
5f40e5ba21
fix(testing): async/fakeAsync/inject/withModule helpers should pass through context to callback functions ( #13718 )
...
Make sure that context (`this`) that is passed to functions generated by test helpers is passed through to the callback functions. Enables usage of Jasmine's variable sharing system to prevent accidental memory leaks during test runs.
2017-01-29 12:08:53 -06:00
Igor Minar
da41a954b5
docs: branding fixes ( #14132 )
...
Angular 1.x -> AngularJS
Angular 1 -> AngularJS
Angular1 -> AngularJS
Angular 2+ -> Angular
Angular 2.0 -> Angular
Angular2 -> Angular
I have deliberately not touched any of the symbol names as that would cause big merge collisions with Tobias's work.
All the renames are in .md, .json, and inline comments and jsdocs.
PR Close #14132
2017-01-27 15:03:11 -06:00
Miško Hevery
d169c2434e
feat(core): Add type information to injector.get() ( #13785 )
...
- Introduce `InjectionToken<T>` which is a parameterized and type-safe
version of `OpaqueToken`.
DEPRECATION:
- `OpaqueToken` is now deprecated, use `InjectionToken<T>` instead.
- `Injector.get(token: any, notFoundValue?: any): any` is now deprecated
use the same method which is now overloaded as
`Injector.get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T): T;`.
Migration
- Replace `OpaqueToken` with `InjectionToken<?>` and parameterize it.
- Migrate your code to only use `Type<?>` or `InjectionToken<?>` as
injection tokens. Using other tokens will not be supported in the
future.
BREAKING CHANGE:
- Because `injector.get()` is now parameterize it is possible that code
which used to work no longer type checks. Example would be if one
injects `Foo` but configures it as `{provide: Foo, useClass: MockFoo}`.
The injection instance will be that of `MockFoo` but the type will be
`Foo` instead of `any` as in the past. This means that it was possible
to call a method on `MockFoo` in the past which now will fail type
check. See this example:
```
class Foo {}
class MockFoo extends Foo {
setupMock();
}
var PROVIDERS = [
{provide: Foo, useClass: MockFoo}
];
...
function myTest(injector: Injector) {
var foo = injector.get(Foo);
// This line used to work since `foo` used to be `any` before this
// change, it will now be `Foo`, and `Foo` does not have `setUpMock()`.
// The fix is to downcast: `injector.get(Foo) as MockFoo`.
foo.setUpMock();
}
```
PR Close #13785
2017-01-17 15:34:54 -06:00
Martin Probst
e19bf70b47
feat(security): allow calc and gradient functions. ( #13943 )
...
PR Close #13943
Also includes support for # color notation in function arguments (common
in gradient functions).
2017-01-17 15:34:53 -06:00
Matias Niemelä
c2aa981dd6
fix(animations): fix internal jscompiler issue and AOT quoting ( #13798 )
...
CL #143630929
PR Close #13798
2017-01-13 13:52:00 -06:00
Matias Niemelä
21030e9a1c
fix(core): animations no longer silently exits if the element is not apart of the DOM ( #13763 )
2017-01-05 11:33:40 -08:00
Matias Niemelä
889b48d85f
fix(core): animations should blend in all previously transitioned styles into next animation if interrupted ( #13148 )
2017-01-05 11:32:52 -08:00
Dzmitry Shylovich
2dd6280ab8
fix(common): do not override locale provided on bootstrap ( #13654 )
...
Closes #13607
2017-01-05 09:24:37 -08:00
Victor Berchet
eed83443b8
chore(tslint): update tslint to 4.x ( #13603 )
2016-12-27 14:55:58 -08:00
Dzmitry Shylovich
67380d4b28
fix(testing): improve misleading error message when don't call compileComponents ( #13543 )
...
Closes #11301
2016-12-22 12:35:57 -08:00
Matias Niemelä
842f52e841
fix(animations): always recover from a failed animation step ( #13604 )
2016-12-21 14:14:45 -08:00
Chuck Jazdzewski
e69c1fb36c
refactor(platform-browser): resolver merge conflict for tslint ( #13601 )
2016-12-20 17:49:25 -08:00
Dzmitry Shylovich
fcd116fdc0
fix(common): throw an error if trackBy is not a function ( #13420 )
...
* fix(common): throw an error if trackBy is not a function
Closes #13388
* refactor(platform-browser): disable no-console rule in DomAdapter
2016-12-20 16:18:24 -08:00
Matias Niemelä
0c19898694
fix(animations): allow players to be destroyed before initialized ( #13346 )
...
Closes #13293
Closes #13346
2016-12-15 14:18:57 -08:00
Dzmitry Shylovich
169ed82900
feat(testing): add overrideTemplate method ( #13372 )
...
Closes #10685
2016-12-14 15:05:17 -08:00
Matias Niemelä
fd8e15b15d
chore(animations/aot): always export NoOpAnimationDriver ( #13480 )
2016-12-14 14:51:29 -08:00
Matias Niemelä
b56474d067
fix(animations): throw errors and normalize offset beyond the range of [0,1]
...
Closes #13348
Closes #13440
2016-12-14 12:59:47 -08:00
Victor Berchet
7295a5e7f2
refactor: format and lint code
2016-12-12 11:30:25 -08:00
Dzmitry Shylovich
8a8c53250e
fix(dom_adapter): remove logError from logGroup ( #12925 )
2016-12-09 15:40:26 -08:00
Dzmitry Shylovich
72361fb68f
feat(platform browser): introduce Meta service ( #12322 )
2016-12-08 18:44:28 -08:00
Miško Hevery
16efb13dd1
fix: display framework version on bootstrapped component ( #13252 )
2016-12-06 16:21:07 -08:00
Victor Savkin
e628b66cca
feat(build): record angular version in the dom ( #13164 )
2016-11-30 13:52:08 -08:00
Matias Niemelä
be3784c957
revert: fix(animations): blend in all previously transitioned styles into next animation if interrupted
...
This reverts commit ef96763fa4
.
2016-11-28 13:23:52 -08:00
Bowen Ni
a6c4490fce
Check if `console.error` is defined
2016-11-23 15:47:02 -08:00
Bowen Ni
2c02d34c05
refactor(lint): Don't allow console.log
...
Enable tslint check for `console.log` as a follow-up to
https://github.com/angular/angular/issues/13018
2016-11-23 15:47:01 -08:00
Matias Niemelä
ef96763fa4
fix(animations): blend in all previously transitioned styles into next animation if interrupted ( #13014 )
...
Closes #13013
Closes #13014
2016-11-21 15:46:59 -08:00
Alex Eagle
664a6273e1
feature(tsc-wrapped): add option for closure compiler JSDoc annotations
2016-11-18 09:37:40 -08:00
Dzmitry Shylovich
ce89039036
fix(platform_browser): fix disableDebugTools() ( #12918 )
2016-11-16 09:16:40 -08:00
Matias Niemelä
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
Matias Niemelä
9de76ebfa5
fix(animations): retain styling when transition destinations are changed ( #12208 )
...
Closes #9661
Closes #12208
2016-11-14 16:59:06 -08:00
Victor Berchet
efbbefd353
fix(platform-browser): enable AOT
...
closes #12783
2016-11-14 12:57:11 -08:00
vsavkin
c2fae72bc6
feat(router): register router with ngprobe
2016-11-14 12:57:05 -08:00
Victor Berchet
08c038ebd9
fix(core): xmb serializer uses decimal messaged IDs
...
fixes #12511
2016-11-14 12:55:48 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Ferhat
73593d4bf3
perf(platform-browser): cache plugin resolution in the EventManager
...
closes #12824
2016-11-11 17:19:47 -08:00
Dzmitry Shylovich
768cddbe62
fix(events): provide the ability to register global hammer.js events
...
closes #12797
2016-11-11 11:15:49 -08:00
Dzmitry Shylovich
92f244aa26
refactor(events): remove facade and clean up
2016-11-11 11:15:43 -08:00
Dzmitry Shylovich
7886561997
fix(router): check if windows.console exists before using it ( #12348 )
2016-11-11 10:46:53 -08:00
Victor Berchet
1bd858fb43
build(examples): upgrade to protractor 4.0.9 ( #12803 )
...
closes #12798
2016-11-10 18:13:11 -08:00
Tobias Bosch
79383ce150
refactor(compiler): never create CompileDirectiveMetadata with not loaded resources ( #12788 )
...
Part of #12787
2016-11-10 14:07:30 -08:00
Matias Niemelä
19e869e7c9
fix(animations): ensure animations work with web-workers ( #12656 )
2016-11-10 11:53:50 -08:00
Matias Niemelä
f80a157b65
fix(animations): ensure web-animations are caught within the Angular zone
...
Closes #11881
Closes #11712
Closes #12355
Closes #11881
Closes #12546
Closes #12707
Closes #12774
2016-11-09 15:16:34 -08:00
Matias Niemelä
fe35bc34f6
fix(animations): allow animations to be destroyed manually ( #12719 )
...
Closes #12456
Closes #12719
2016-11-08 16:21:28 -08:00
Matias Niemelä
a0e9fde653
fix(animations): always normalize style properties and values during compilation ( #12755 )
...
Closes #11582
Closes #12481
Closes #12755
2016-11-08 15:45:30 -08:00
Victor Berchet
ec92f4b198
refactor: remove `keys()` and `values()` from MapWrapper
2016-11-04 13:27:38 -07:00
Tobias Bosch
e3687706c7
refactor(compiler): minor cleanup
2016-11-03 16:29:51 -07:00