Tobias Bosch
8e38291156
chore: enable the compiler_cli tests again.
...
Closes #8864
2016-05-26 13:33:26 -07:00
laco0416
f93512bf27
feat(ViewEncapsulation): default ViewEncapsulation to configurable
...
BREAKING CHANGES:
DirectiveNormalizer takes new constructor arguments, `config:CompilerConfig`.
Closes #7883
2016-05-26 13:23:37 -07:00
Suguru Inatomi
c3fafa0651
feat(change_detection): make INTERPOLATE_REGEXP customizable ( #7417 )
...
BREAKING CHANGES:
`Parser` constructor required new parameter `config: CompilerConfig` as second argument.
2016-05-26 13:08:39 -07:00
Andrii Nechytailov
9036f78b74
fix(compiler): throw an error if variable with the same name is already defined. ( #7209 )
...
* fix(compiler): throw an error if variable with the same name is already defined. Closes #6492
* fix(compiler): Clean up formatting for issue #6492
* fix(compiler): throw an error if reference with the same name is already defined.
Closes #6492
2016-05-26 13:04:17 -07:00
Andrei Tserakhau
324f0147f6
feat(common/datePipe): change date formatter to use correct pattern closes #7008 ( #8154 )
...
- add regular expression to parse date parts
- add date part creator function
- replace tokens in pattern to parsed parts
2016-05-26 12:06:29 -07:00
Dimitrios Loukadakis
b2a7fd05cb
fix(router): replace state when path is equal to current path ( #8766 )
...
Same as 2bf21e1747
but for new router.
This also fixes an issue where when application loads it clears forward history
because Router constructor calls navigateByUrl which was causing a push state to happen.
2016-05-26 12:02:24 -07:00
Nicholas Hydock
84f859d7b2
fix(Control): Support <select multiple> with Control class ( #8069 )
2016-05-26 12:01:49 -07:00
Matthew Windwer
cbc8d0adf8
fix(upgrade): Ensure upgrade adapter works on angular.js 1.2 ( #8647 )
2016-05-26 11:58:47 -07:00
Anton Moiseev
420e83a396
feat(forms): add the submitted flag to NgForm and NgFormModel directives
...
Closes #2960
Closes #7449
2016-05-26 10:48:13 -07:00
Thierry Templier
89f61087c7
feat(http): implement Response.prototype.toString() to make for a nicer error message
...
Added a toString method to the Response class displaying status / status and
the URL of the request.
Closes: https://github.com/angular/http/issues/89
Closes #7511
2016-05-26 10:38:29 -07:00
Matt Wheatley
b7b56785d1
fix(Renderer): update signatures to make RenderDebugInfo optional
...
The code does not force the user to provider `RenderDebugInfo`. The
current implementation lists this as a mandatory parameter. Update
the parameter to be optional.
Fixes #8466
Closes #8859
2016-05-26 10:32:03 -07:00
Zach Bjornson
3a62023260
docs(LifecycleHooks): correct ngDoCheck description ( #8807 )
...
The current behavior is for ngDoCheck to supplement, not override, the default change detector. OnChanges will still be called when DoCheck is implemented (fixes #7307 ).
2016-05-26 10:27:42 -07:00
Dimitrios Loukadakis
fa2ce8100b
fix(router): openning links in new tab
...
Clicks on router-link should not prevent browser default action when
any mouse button other than left mouse button or ctrl/meta key is pressed.
router-link href should use location strategy external url.
Closes #5908
Closes #6806
Closes #7749
Closes #8806
Closes #8821
2016-05-26 10:26:57 -07:00
Victor Berchet
172a5663ef
feat(platform-browser-dynamic): re-add a deprecated platform-browser-dynamic
2016-05-26 10:22:39 -07:00
Victor Berchet
f4b972815b
fix(platform-browser): fix rollup config
2016-05-26 10:21:24 -07:00
Julie Ralph
0cb93a436d
fix(testing): add discardPeriodicTasks to be used with fakeAsync ( #8629 )
...
Closes #8616
2016-05-26 10:19:30 -07:00
Suguru Inatomi
b2e804c961
fix(metadata): Allow spacing in multiple selectors ( #7418 )
2016-05-26 10:18:31 -07:00
Igor Minar
85ce184197
refactor(compiler): remove obsolete code ( #8837 )
2016-05-26 10:15:47 -07:00
Ajay Ambre
c27bc1956b
docs(API): correct formatting of EmbeddedViewRef API doc example ( #8584 )
...
remove ... from EmbeddedViewRef API example doc comments
2016-05-26 09:53:18 -07:00
Jonathan Miles
72707d80ab
refactor(api): Correct public api variable names ( #8552 )
...
Correct public api variable names (ROUTER_DEPRETACED_TESTING -> ROUTER_DEPRECATED_TESTING)
2016-05-26 09:52:56 -07:00
Ivan Gabriele
00475f25c8
fix(doc): Add missing comma in example ( #8769 )
2016-05-26 09:50:59 -07:00
Vanga Sasidhar
bab6023eee
fix(router): Added pushState fallback for IE 9 browser.
...
Closes #6506
Closes #7929
2016-05-26 09:49:07 -07:00
Martin Probst
5e12a95789
test(security): test case for quoted URL values.
...
Test case that fixes #8701 . This is already supported with the latest sanitizer
changes, but it's good to have an explicit test case.
2016-05-26 09:39:23 -07:00
Rob Wormald
e5904f4089
fix(facade): change EventEmitter to be sync by default ( #8761 )
2016-05-26 09:34:04 -07:00
Victor Berchet
352ee53202
Revert "feat(AsyncPipe): allow onError argument"
...
This reverts commit 390046d7b3
.
CI fails for IE on win8.
PR #7990
2016-05-25 17:23:20 -07:00
Igor Minar
b9347eb01c
build: remove dependency on tsd and use @types/* instead
2016-05-25 16:42:28 -07:00
Igor Minar
4dbd8ed6b8
refactor: remove unnecessary annotations
2016-05-25 16:42:28 -07:00
Misko Hevery
cb980d3e43
fix(ci): incorrect import
2016-05-25 16:22:55 -07:00
Misko Hevery
d0a64f9c86
fix: broken build
2016-05-25 16:03:11 -07:00
Alex Eagle
16ef21d086
fix(ngc): depend on correct tsc-wrapped package
2016-05-25 15:34:43 -07:00
Miško Hevery
39ecd01b86
chore: audit @angular/core API classification ( #8808 )
2016-05-25 15:00:05 -07:00
Matias Niemelä
5e0f8cf3f0
feat(core): introduce support for animations
...
Closes #8734
2016-05-25 13:56:50 -07:00
Alex Eagle
4c26397937
chore(ngc): refactor out tsc-wrapped
...
This allows angular's build to depend on some extensions, but not on code generation, and breaks a cycle in the angular build
We now merge ts-metadata-collector into tsc-wrapped and stop publishing the former.
2016-05-25 09:45:55 -07:00
Igor Minar
2ab1085dfb
fix(core): remove @internal annotation from PLATFORM_CORE_PROVIDERS
...
This symbol is no longer reexported at the top level, so it's safe to not mark it as internal.
This fixes the offline compilation which got broken by this symbol not being present in the d.ts
files when the compiler tries to do a deep import.
Closes #8819
2016-05-25 08:22:07 -07:00
Igor Minar
16dfe3c63f
build: consolidate tsc to ease migration to @types/ based typings delivery
...
I actually tried to use @types/* directly but came across several issues which prevented me
from switching over:
- https://github.com/Microsoft/TypeScript/issues/8715
- https://github.com/Microsoft/TypeScript/issues/8723
2016-05-25 08:22:07 -07:00
Wesley Cho
53628e19ac
fix(compiler): add ability to parse : in * directives
...
- Add ability to parse bindings properly when `:` is present when using a directive with the `*` prefix
Closes #6038
2016-05-24 21:43:10 -07:00
Misko Hevery
62dd3ceb64
Revert "Don't update the location during initial router navigation"
...
This reverts commit d5066a9a0f
.
2016-05-24 21:43:10 -07:00
Jay Phelps
d5066a9a0f
Don't update the location during initial router navigation
...
Closes #6069
2016-05-24 21:34:59 -07:00
Alfonso Presa
5f3d02bc7c
fix(Animation): Problem decimals using commas as decimal separation
...
Tests where failing due to `.` character being used as decimal separator in some regional settings (like spanish for example)
Closes #6335
Closes #6338
2016-05-24 21:23:46 -07:00
Utsav Shah
92340350d2
fix(http): Set response.ok
...
The ok property was not being set on response objects.
It's now set based on the status code.
Closes #6390
Closes #6503
2016-05-24 21:20:27 -07:00
gdi2290
d4827caa08
refactor(DomRootRenderer): allow registeredComponents access
...
Closes #6584
2016-05-24 21:17:11 -07:00
Gabe Scholz
6ce13b68fa
Typo in web_workers.md
...
Closes #6694
2016-05-24 21:16:11 -07:00
Borys Semerenko
e82b700ad0
docs(directives): add a deprecation comment for properties, events
...
Closes #7059
2016-05-24 21:13:56 -07:00
Grégory Bataille
60a2ba87d4
fix( #7099 ): support for comment finishing with multiple dashes
...
<!-- xxxx ------->
The issue came from a lack of support for backtracking on string
matching.
The way it is done, if the "end pattern" for consumeRawText starts with
twice the same character, you end up having problem when your string
being parsed has 3 times this char
Example
End string: xxyz
string to parse: aaaaaaxxxyz
calling consumeRawText(false, 'x', attemptParseStr('xyz')) would fail
Closes #7119
2016-05-24 21:01:41 -07:00
cexbrayat
83c19a1fbc
fix(pipes): handle undefined value in slice
...
Closes #7152
2016-05-24 20:58:14 -07:00
Wassim Chegham
1513e201bb
docs(ContentChild): add example with refs
...
Add missing example on how ContentChild works with refs
Closes #7160
Closes #7162
2016-05-24 20:57:25 -07:00
Dmytro Kulyk
a38c9a1ef7
fix(Router) Fix detect active route in depth.
2016-05-24 20:51:51 -07:00
Misko Hevery
d5f5ce82ca
Revert "fix(compiler): support string tokens with `.` inside."
...
This reverts commit 67c80fbb5e
.
2016-05-24 20:51:51 -07:00
Kara Erickson
6dc88f5b61
fix(forms): radio buttons with different names should not share state
...
Closes #7051
2016-05-24 20:07:57 -07:00
Kara Erickson
7a2ce7ff21
fix(forms): update accessor value when native select value changes
...
Closes #8710
2016-05-24 20:03:49 -07:00
Matias Niemelä
1ac38bd69a
feat(renderer): add a `setElementStyles` method
2016-05-24 18:42:05 -07:00
Victor Berchet
390cefac72
refactor(testing/server): optimize imports
2016-05-24 14:00:00 -07:00
Thierry Templier
95af14b97c
feat(http): added withCredentials support
...
Taken into account the withCredentials property within the request options:
- added corresponding property in the RequestOptions class
- added corresponding property in the Request class
- handle this property when merging options
- set the withCredentials property on the XHR object when specified
Added a test in the xhr_backend_spec.ts to check that the property is actually
set on the XHR object
Closes https://github.com/angular/http/issues/65
Closes #7281
Closes #7281
2016-05-24 11:53:43 -07:00
Thierry Templier
0f0a8ade7c
feat(http): automatically set request Content-Type header based on body type
...
Implement the ability to provide objects as request body. The following use cases
are supported:
* raw objects: a JSON payload is created and the content type set to `application/json`
* text: the text is used as it is and no content type header is automatically added
* URLSearchParams: a form payload is created and the content type set to `application/x-www-form-urlencoded`
* FormData: the object is used as it is and no content type header is automatically added
* Blob: the object is used as it is and the content type set with the value of its `type` property if any
* ArrayBuffer: the object is used as it is and no content type header is automatically added
Closes https://github.com/angular/http/issues/69
Closes #7310
2016-05-24 11:42:37 -07:00
Andreas Wissel
016f0d8e9e
fix: Typo in async.ts
...
Closes #7382
2016-05-24 11:15:51 -07:00
Victor Berchet
3e5716ec16
feat(i18n): support implicit tags/attributes
2016-05-24 10:12:19 -07:00
Victor Berchet
75e6dfb9ab
fix(browser): platform code cleanup
2016-05-23 17:57:28 -07:00
Victor Berchet
f95a604b59
fix(bootstrap): swap coreBootstrap() and coreLoadAndBootstrap() arguments
2016-05-23 17:57:28 -07:00
Victor Berchet
3ff20cd7e3
fix(core): fix build
2016-05-23 17:56:48 -07:00
Kevin-K
17f73cb7bc
docs(http): fix MockBackend example
...
imports & syntax error fix
Closes #7383
2016-05-23 17:22:36 -07:00
Brendan Wyse
fba0e2ff12
docs(browser.ts): update bootstrap injector override argument name
...
Closes #7387
2016-05-23 17:21:07 -07:00
Vamsi V
b62415c962
refactor(chore): remove unused mapToObject and objectToMap methods from serializer
...
resolves #7402
Closes #7416
2016-05-23 17:20:25 -07:00
Tom Schoener
adc135e6c8
refactor(async_pipe): use subscription strategy interface
...
The strategies for Promise and Observable based subscriptions
have (nearly) the same method signatures. They should implement
a common interface.
Closes #7573
2016-05-23 17:02:56 -07:00
Tero Parviainen
ceac045a7f
fix(compiler): have CSS parser support nested parentheses inside functions
...
Closes #7580
2016-05-23 16:58:15 -07:00
Ward Bell
0a872ffd38
feat(core/linker): add SimpleChanges type to lifecycle_hooks to simplify OnChanges signature
...
Closes #8557
2016-05-23 16:11:52 -07:00
Pete Boere
6f3a6a55a0
Update url_search_params.ts
...
Values need to be encoded on `toString()`
Closes #7686
2016-05-23 14:43:26 -07:00
Vamsi Varikuti
0795dd307b
refactor(chore): Replace all 'bindings' with 'providers'
...
BREAKING CHANGE
Deprecated `bindings:` and `viewBindings:` are replaced with
`providers:` and `viewProviders:`
Closes #7687
2016-05-23 13:31:08 -07:00
Vamsi Varikuti
49fb7ef421
refactor(router): Remove deprecated 'as' from ‘RouteConfig’
...
BREAKING CHANGE
Remove deprecated 'as' from ‘RouteConfig’ in favour of ‘name’
2016-05-23 13:24:36 -07:00
Peter Bacon Darwin
cbeeff2bd6
fix(Router): do not kill event-emitter on navigation failure
...
Closes #7692
Closes #7532
Closes #7692
2016-05-23 13:21:09 -07:00
Sebastian Hillig
ce013a3dd9
feat(regex_url_paths): add `regex_group_names` to handle consistency with serializers
...
By adding `regex_named_groups` to regex route configurations we can consistently map
regex matching groups to component parameters.
This should fix #7554 .
Closes #7694
2016-05-23 13:18:21 -07:00
Justin DuJardin
c43636f2bb
fix(di): type error in InvalidProviderError
...
- when trying to instantiate an injector with an unknown provider
Closes #7729
2016-05-23 13:08:10 -07:00
cjc343
9c2fe660a3
(docs) Fix pony greeting equivalence
...
Cheatsheet claims equivalence between two statements which are not equivalent
Closes #7761
2016-05-23 13:07:20 -07:00
laco0416
abc266fa35
feat(common): DatePipe supports ISO string
...
Closes #7794
2016-05-23 12:30:02 -07:00
kurt
7d853dd9ad
fix(router): ensuring MatchedUrl pass query params
2016-05-23 12:24:08 -07:00
Alex Eagle
666dc75c15
chore(lint): disallow duplicate imports from a module
...
Closes #7859
2016-05-20 15:59:33 -07:00
Pete Mertz
830aecd1a7
fix(router/parsing): change route rule error to say PascalCase instead of CamelCase
...
Closes #7874
2016-05-20 15:39:30 -07:00
Rene Weber
2bf21e1747
fix(Router): replace state when normalized path is equal to current normalized path
...
Make sure the same path is not added multiple times to the history.
It is replacing the state, instead of skipping it completely,
because the current path in the browser might not be normalized,
while the given one is normalized.
Closes #7829
Closes #7897
2016-05-20 15:30:15 -07:00
Pascal Precht
9105ab9596
docs(ng_control_group): update API docs syntax
...
Closes #7357
2016-05-20 13:19:08 -07:00
mgechev
165357bfa3
refactor(forms): remove useless imports
...
Remove useless imports and change `bindings` to `providers` inside
`@Component` and `@Directive`.
Closes #7904
2016-05-20 13:13:27 -07:00
Andrew
33c7f74cb9
style(platform/browser): fix type spacing
...
Closes #7980
2016-05-20 13:05:40 -07:00
alexcastillo
cb84cbf545
feat(shadow_css): add encapsulation support for CSS @supports at-rule
...
Closes #7944
2016-05-20 13:02:24 -07:00
Elliott Davis
b2e0946696
fix(Request): Change Request.text's return type to string
...
Change the return typing for the .text method to `string` so typescript treats it
like a normal string.
Closes #8138
2016-05-20 12:57:31 -07:00
Tobias Bosch
67c80fbb5e
fix(compiler): support string tokens with `.` inside.
...
Closes #8178
2016-05-20 12:56:02 -07:00
Igor Minar
0035575c82
build: turn on tsc's stripInternal when producint public d.ts file
...
I also made some changes to fix imports and remove some stuff that caused
breakage once stripInternals was turned on.
2016-05-20 10:59:57 -07:00
Drew Moore
1bff47f97d
docs: fix syntax errors in HostBinding metadata example
...
add missing parentheses to getters, remove erroneous brackets in HostBindings
Closes #8269
2016-05-20 10:56:11 -07:00
Victor Berchet
e8e61de28d
refactor(WebWorker): move XHR worker side
2016-05-20 10:48:55 -07:00
Victor Berchet
54f8308999
refactor(browser): merge static & dynamic platforms
2016-05-20 10:48:55 -07:00
PatrickJS
6c99746f0b
Update tools.ts
...
Closes #8296
2016-05-20 10:12:54 -07:00
PatrickJS
4086b49046
feat(enableDebugTools): return ComponentRef
...
allows for
```
bootstrap(App, [
...HTTP_PROVIDERS,
...ROUTER_PROVIDERS
])
.then(enableDebugTools)
```
without breaking the rule of always returning a value in a promise
2016-05-20 10:12:54 -07:00
Jake Garelick
19e65382f7
fix(core): accurate dev mode message for dart ( #8403 )
2016-05-20 10:01:39 -07:00
Yang Lin
c6f2b3e96b
docs(router): fix import and replace RouteConfig ( #8433 )
2016-05-20 10:00:04 -07:00
mgechev
55921be1af
fix(router-deprecated): export RootRoute
...
Fix #8449
Closes #8450
2016-05-20 09:59:21 -07:00
agpreynolds
3857c8226e
docs(MockConnection) update mockRespond usage example ( #8487 )
...
Closes : #8486
2016-05-20 09:19:59 -07:00
Dimitrios Loukadakis
595bcdd1ac
fix(router): browser back and forward buttons not working correctly.
...
Closes #8524
Closes #8532
2016-05-19 22:42:08 -07:00
Rob Wormald
aec95015f8
docs(http): update http docs to mention .map operator
...
Closes #5947
2016-05-19 22:15:26 -07:00
gdi2290
390046d7b3
feat(AsyncPipe): allow onError argument
...
Closes #7990
2016-05-19 16:49:28 -07:00
PatrickJS
587c119c75
feat(NgZone): isStable
...
Closes #8108
2016-05-19 16:10:08 -07:00
Aliaksei Palkanau
3019140e7e
feat(http): set the statusText property from the XMLHttpRequest instance
...
Closes #4162
2016-05-19 15:58:59 -07:00
BeastCode
7a80f0d1e1
change property and event to use camel case
...
Closes #6580
2016-05-19 15:21:54 -07:00
BeastCode
0894318f50
change property and event to use camel case:
...
* some-property -> someProperty
* some-event -> someEvent
Closes #6609
2016-05-19 15:20:34 -07:00