Tobias Bosch
8847580fd7
Revert "fix(compiler): add ability to parse : in * directives"
...
This reverts commit 53628e19ac
.
as it breaks pipe arguments in `*ngFor`, ...
See #9062
Closes #9063
2016-06-07 12:39:17 -07:00
Chuck Jazdzewski
cf3548a02f
fix(compiler): Improved error reporting of the static reflector.
...
StaticReflector provides more context on errors reported by the
collector.
The metadata collector now records the line and character of the node that
caused it to report the error.
Includes other minor fixes to error reporting and a wording change.
Fixes #8978
Closes #9011
2016-06-07 08:38:32 -07:00
Chuck Jazdzewski
c197e2bb42
Revert "fix(ngUpgrade): prevent digest already in progress ( #9046 )"
...
This reverts commit d1c989b8a5
.
Breaks a Karma test.
2016-06-06 16:30:11 -07:00
Torgeir Helgevold
d1c989b8a5
fix(ngUpgrade): prevent digest already in progress ( #9046 )
2016-06-06 13:34:27 -07:00
Rob Wormald
a19c4e8f9a
fix(upgrade): allow functions for template and templateUrl ( #9022 )
2016-06-04 19:53:51 -07:00
PatrickJS
53083c0b52
refactor(testing): type beforeEachProviders ( #9023 )
...
these are valid otherwise
```typescript
beforeEachProviders(1)
beforeEachProviders('wat')
beforeEachProviders([
Http
])
```
2016-06-04 19:52:51 -07:00
PatrickJS
994d9212c1
docs(NgControlName): correct exports name ( #9021 )
2016-06-04 19:48:50 -07:00
Pawel Kozlowski
52ddc96c9f
refactor(compiler): remove obsolete @View-related code ( #9019 )
2016-06-04 19:46:55 -07:00
Pawel Kozlowski
057abefe50
fix(compiler): report errors for queries without selectors ( #9018 )
...
Fixes #4489
2016-06-04 19:46:03 -07:00
Matias Niemelä
a1e3004e62
docs(animations): provide API docs for the animation DSL
...
Closes #8970
2016-06-03 18:57:17 -07:00
Matias Niemelä
e504d4eb05
fix(renderer): remove unecessary setElementStyles method
...
There is no need to expose this additional method inside of the Renderer
API. The functionality can be restored by looping and calling
`setElementStyle` instead.
Note that this change is changing code that was was introduced after
the last release therefore this fix is not a breaking change.
Closes #9000
Closes #9009
2016-06-03 15:20:34 -07:00
Victor Berchet
a6ad61d83e
refactor: change provide(...) for {provide: ...}
...
- provide() is deprecated,
- {} syntax is required by the offline compiler
2016-06-03 15:03:49 -07:00
Victor Berchet
27a47e7841
refactor(imports): simplify paths
2016-06-03 14:46:04 -07:00
Matias Niemelä
b00b9fe564
chore(README): update missing step in compiler-cli docs README
2016-06-03 14:36:16 -07:00
Matias Niemelä
fa0718ba9a
feat(animations): provide support for offline compilation
2016-06-03 14:36:11 -07:00
Matias Niemelä
155b88213c
feat(debug): collect styles and classes for the DebugElement
2016-06-03 14:36:06 -07:00
Chuck Jazdzewski
35ea02fb81
fix(compiler): Reflector generates imports for '..' relative modules.
...
Fixes #9003
Closes #9004
2016-06-03 12:54:30 -07:00
Tobias Bosch
ddd2ac4f55
fix(core): fix type of `DebugNode.properties` ( #8964 )
...
Properties can have any value, not just strings.
2016-06-03 10:51:13 -07:00
Pawel Kozlowski
6f281ab3c4
fix(HTMLParser): properly report errors for not properly closed tags ( #8999 )
...
Fixes #7849
2016-06-03 10:49:17 -07:00
Igor Minar
76e6214b9b
chore: remove angular_entry point ( #8975 )
...
this is obsolete and no longer needed. it wasn't part of the public api so it's ok to remove.
2016-06-03 10:47:55 -07:00
Chuck Jazdzewski
2d8f776e38
feat(build): Added a version stamp in .metadata.json files.
...
Also modified StaticReflector to handle multiple versions in a
single .metadata.json file.
Fixes #8974
Closes #8981
2016-06-03 10:40:49 -07:00
Sekib Omazic
cf2d3cf920
style(pipes): cleanup unused imports
...
Remove unused imports from the pipes package. No impact on the code.
2016-06-03 09:58:57 -07:00
Miško Hevery
b160ada5d1
fix: QueryList documentation ( #8976 )
2016-06-02 16:24:26 -07:00
Victor Berchet
1090601e8b
refactor(compiler): rename /compiler_cli to /compiler-cli
2016-06-02 13:50:32 -07:00
Chuck Jazdzewski
01dd7dde24
chore(tools): Remove use of TypeChecker from metadata collector.
...
The metadata collector was modified to look up references in the
import list instead of resolving the symbol using the TypeChecker
making the use of the TypeChecker vestigial. This change removes
all uses of the TypeChecker.
Modified the schema to be able to record global and local (non-module
specific references).
Added error messages to the schema and errors are recorded in
the metadata file allowing the static reflector to throw errors
if an unsupported construct is referenced by metadata.
Closes #8966
Fixes #8893
Fixes #8894
2016-06-02 13:39:15 -07:00
Chuck Jazdzewski
13c39a52c6
chore(compiler): Expose types needed by the language service
...
The language service needs access to the parser error ranges and
the static reflector.
Closes #8838
2016-06-02 13:36:22 -07:00
Victor Berchet
3b80ab51ba
feat(SchemaRegistry): add Node.textContent
...
fixes #8413
2016-06-02 13:33:57 -07:00
Victor Berchet
1a386a58c8
Revert "feat(change_detection): make INTERPOLATE_REGEXP customizable ( #7417 )"
...
This reverts commit c3fafa0651
.
The symbols should be configured at the component level and not be global to the compiler.
2016-06-01 17:53:45 -07:00
Tobias Bosch
04220be8fd
chore: remove old tests ( #8954 )
...
These tests are already captured in template_parser_spec.ts
2016-06-01 16:30:51 -07:00
Hannah Howard
48bf349c3c
fix(upgrade): allow deeper nesting of ng2 components/directives ( #8949 )
...
* fix(upgrade): add test for upgrade adapter bug
* fix(upgrade): allow deeper nesting of ng2 components/directives
allow a nesting sequence of ng2 > ng1 > ng2 directives
2016-06-01 15:58:40 -07:00
laco0416
602836800b
feat(ChangeDetectorRef): make detectChanges() correct
...
Closes #8599
2016-06-01 12:50:47 -07:00
Igor Minar
a738d0d54d
chore: remove old public api tests
...
the tests under tools/public_api_guard have better coverage - we no longer need
to maintain two copies.
2016-06-01 10:43:57 -07:00
Igor Minar
dd6cb233b5
build: add missing testing.ts entry points to tsconfigs
2016-06-01 10:43:22 -07:00
Igor Minar
a3cf58b67a
docs: add info about __moduleName into to DirectiveMetadata docs
2016-06-01 10:43:22 -07:00
Igor Minar
70d944a59c
refactor: correct api modifier flags
2016-06-01 10:43:22 -07:00
Igor Minar
a5a422f8e7
refactor(NumberPipe): remove NumberPipe and replace it with private helper function
...
NumberPipe was just an implementation detail that we were accidentaly exposing as a public api.
2016-06-01 10:43:22 -07:00
Igor Minar
e93b3d2360
fix(Location): make Location#platformStrategy:LocationStrategy property private
...
BREAKING CHANGE: Location#platformStrategy property was previously accidentaly exported as public
If any application requires access to the current location strategy, it should be accessed via DI instead
by injecting the LocationStrategy token.
The likelyhood of anyone actually depending on this property is very low.
2016-06-01 10:43:22 -07:00
Igor Minar
7bc2d9a93a
docs: add api stability indicators for @angular/common
2016-06-01 10:43:22 -07:00
Hannah Howard
1c929031a2
feat(router): export RouterLink and RouterOutlet ( #8912 )
...
Makes it possible to individually import RouterLink and RouterOutlet from the router module
2016-06-01 09:48:55 -07:00
Victor Berchet
f2809d1ed8
fix(PostMessageBus):Add the worker scope to please Closure
2016-06-01 09:24:05 -07:00
Vikram Subramanian
f4f6b8721a
fix(core): Keep core exports seperate from core/testing exports.
2016-05-31 20:09:43 -07:00
opensrcken
7e352a27f7
fix(d.ts): enable angular2 compilation with TS flag --strictNullChecks ( #8902 )
...
Eliminate the following compiler error when using TS 1.9+ with strict null checking enabled:
node_modules/@angular/core/src/util/decorators.d.ts(9,5): error TS2411: Property 'extends' of type 'Type | undefined' is not assignable to string index type 'Type | Function | any[]'.
https://github.com/angular/angular/issues/8720
2016-05-31 18:25:48 -07:00
Tom
0c6b16c208
docs(async-pipe): include observable example ( #8900 )
...
Adds the missing example, usage case and a bit more description to the async-pipe.
2016-05-31 18:23:29 -07:00
Martin Probst
10475b859d
chore: remove deep imports to fix build.
2016-05-31 17:13:41 -07:00
Martin Probst
4d793c4eb8
feat(security): Automatic XSRF handling.
...
Automatically recognize XSRF protection cookies, and set a corresponding XSRF
header. Allows applications to configure the cookie names, or if needed,
completely override the XSRF request configuration by binding their own
XSRFHandler implementation.
Part of #8511 .
2016-05-31 16:12:33 -07:00
Alex Eagle
3331321f64
build(ngc): run integration test hermetically
...
This ensures we run in a clean directory, using our real distribution. It finds bugs like @internal
APIs needed to type-check in the offline compiler, as well as problems in package.json.
Also move tsc-wrapped under tools/@angular
2016-05-27 17:21:35 -07:00
Alex Eagle
c6064a30a1
chore(package.json): make the packages installable
2016-05-27 17:21:34 -07:00
Martin Probst
040b101842
feat(security): complete DOM security schema.
...
This addresses several oversights in assigning security contexts to DOM schema
elements found by our security reviewers (thanks!).
This also adds some more precise unit tests for the interaction between
(Dom)ElementSchemaRegistry and the TemplateParser, and extracts the security
specific parts into dom_security_schema.ts.
Comparison of (potentially) dangerous property names is done case insensitive,
to avoid issues like formAction vs formaction.
Part of issue #8511 .
2016-05-27 11:47:33 -07:00
Phong Huynh
ec198b0dc6
docs(MockConnection) add mockError usage example ( #8888 )
2016-05-27 10:10:53 -07:00
Alex Eagle
b5d14c26d2
chore(lint): enable requireInternalWithUnderscore tslint check
2016-05-27 09:31:18 -07:00
Alex Eagle
2019050db2
chore(lint): enable duplicateModuleImport tslint check
2016-05-27 09:17:08 -07:00
Victor Berchet
307d105d2c
fix(DomRegistry): fix svg support
2016-05-26 16:46:00 -07:00
Alex Eagle
0b6967fd74
chore(lint): fix missing semicolon to make Circle green ( #8877 )
2016-05-26 16:43:15 -07:00
Alex Eagle
ef0c32512c
chore(lint): enable semicolon and variable-name tslint checks
2016-05-26 15:46:03 -07:00
Victor Berchet
4d825dd9fd
refactor(intl facade): remove outdated code
2016-05-26 14:19:26 -07:00
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