vsavkin
756121acc1
feat(i18n): update I18nHtmlParser to accept parsed messages
2016-03-28 19:54:13 +00:00
vsavkin
d7e1175df0
feat(i18n): implement xmb deserialization
2016-03-28 19:54:12 +00:00
vsavkin
66cd84e0d5
refactor(i18n): rename serialize into serializeXmb
2016-03-28 19:54:12 +00:00
Sammy Jelin
430f367c2f
fix(upgrade): make ngUpgrade work with testability API
...
Closes #7603
2016-03-25 17:27:45 +00:00
vsavkin
d272f96e23
feat(i18n): implement an i18n-aware html parser
...
Closes #7738
2016-03-24 20:36:19 +00:00
vsavkin
73a84a7098
refactor(i18n): remove utility functions into a separate file
2016-03-24 20:36:19 +00:00
vsavkin
17c8ec8a5d
feat(html_parser): change HtmlElementAst to store both the start and the end positions
2016-03-24 20:36:19 +00:00
vsavkin
91999e016e
feat(facade): add RegExpWrapper.replaceAll to replace all matches using the provided function
2016-03-24 20:36:19 +00:00
Victor Berchet
aa966f5de2
feat(Compiler): Allow overriding the projection selector
...
fixes #6303
BREAKING CHANGE:
For static content projection, elements with *-directives are now matched against the element itself vs the template before.
<p *ngIf="condition" foo></p>
Before:
// Use the implicit template for projection
<ng-content select="template"></ng-content>
After:
// Use the actual element for projection
<ng-content select="p[foo]"></ng-content>
Closes #7742
2016-03-24 20:09:34 +00:00
Brian Ford
6de68e2f1f
feat(compiler): assert that Component.style is an array
...
Part of #7481 (effort to improve error messages)
Closes #7559
2016-03-24 15:21:16 +00:00
Brian Ford
49527ab495
fix(ngFor): give more instructive error when binding to non-iterable
...
Before, you'd get an error like:
```
EXCEPTION: Cannot find a differ supporting object ‘[object Object]’ in [users in UsersCmp@2:14]
```
Now, you get:
```
EXCEPTION: Cannot find a differ supporting object ‘[object Object]’ of type 'Object'. Did you mean to bind ngFor to an Array? in [users in UsersCmp@2:14]
```
2016-03-24 15:21:16 +00:00
Misko Hevery
048bd280dd
chore: re-enable all tests (accidental ddescribe checkin)
2016-03-18 19:41:30 +00:00
vsavkin
e1f8e54e34
feat(i18n): implement xmb serializer
2016-03-17 16:45:15 -07:00
vsavkin
2b165944ea
refactor(i18n): move message and id into a separate file
2016-03-17 16:45:15 -07:00
Misko Hevery
310620fd12
chore: upgrade to new Zone.js API v0.6.2
...
BREAKING CHANGE
Removed deprecated API from NgZone
- `NgZone.overrideOnTurnStart`
- `NgZone.overrideOnTurnDone`
- `NgZone.overrideOnEventDone`
- `NgZone.overrideOnErrorHandler`
Rename NgZone API
- `NgZone.onTurnStart` => `NgZone.onUnstable`
- `NgZone.onTurnDone` => `NgZone.onMicrotaskEmpty`
- `NgZone.onEventDone` => `NgZone.onStable`
Closes #7345
2016-03-16 18:05:09 +00:00
Brian Ford
f9fb72fb0e
chore(core): remove @View annotation
...
Closes #7495
2016-03-14 23:26:20 +00:00
vsavkin
095db673c5
feat(i18n): implement a simple version of message extractor
...
Closes #7454
2016-03-14 21:50:00 +00:00
vsavkin
70d18b5b53
feat(compiler): change html parser to preserve comments
2016-03-14 21:50:00 +00:00
Tobias Bosch
cb38d72ff4
feat(shadow_css): support `/deep/` and `>>>`
...
Fixes #7562
Closes #7563
2016-03-11 22:14:26 +00:00
Matias Niemelä
b72bab49aa
feat(core): introduce a CSS lexer/parser
2016-03-11 13:54:01 -08:00
vsavkin
201475e8d8
cleanup(testing): clean up public api spec
...
Change the old public api spec to check only the exported top-level symbols. This will make sure that Dart and JS do not diverge. The new public api spec verifies the TS api.
Closes #7447
2016-03-11 19:24:29 +00:00
Alex Eagle
127fbfd5a6
Revert "feat(core): introduce a CSS lexer/parser"
...
This reverts commit 293fa5505b
.
The rebased commit broke CI: https://travis-ci.org/angular/angular/jobs/115388814
2016-03-11 11:14:58 -08:00
Matias Niemelä
293fa5505b
feat(core): introduce a CSS lexer/parser
2016-03-11 10:42:29 -08:00
Kara Erickson
df1f78e302
feat(i18n): add ngPlural directive
2016-03-10 09:55:21 -08:00
Matias Niemelä
169869a195
test(matchers): add support for toMatchPattern in tests
2016-03-09 21:31:15 -08:00
Matias Niemelä
b691da26af
chore(facade): add enum index lookup support
2016-03-09 21:30:03 -08:00
Peter Bacon Darwin
8e3e45097a
fix(router): handle URL that does not match a route
...
Closes #7349
Closes #7203
2016-03-09 20:48:52 -08:00
Peter Bacon Darwin
0d58b137a7
fix(router/instruction): ensure toLinkUrl includes extra params
...
Closes #7367
2016-03-09 16:21:43 -08:00
Misko Hevery
14f0e9ada8
chore: fix DDC errors / warnings
...
Closes #7195
2016-03-08 22:17:32 +00:00
Vikram Subramanian
b857fd1eeb
Revert "feat(transformers): collect provider information"
...
This reverts commit 81beb1c788
.
Broke Google3.
2016-03-04 13:51:26 -08:00
Brandon Roberts
6dce4f49c2
feat(router): Added method to get current instruction
...
This method delegates to the root router to get the current complete instruction.
2016-03-04 02:10:58 -08:00
vsavkin
81beb1c788
feat(transformers): collect provider information
2016-03-04 01:19:25 -08:00
Misko Hevery
6402d61f69
chore: fix up ngClass for types/export missing public API
...
Closes #7202
2016-03-04 08:03:55 +00:00
Julie Ralph
5a59e44765
chore(test): migrate Dart tests to package:test
...
Instead of running with karma and the karma-dart shim, run dart
tests directly using the new package:test runner. This migrates
away from package:unittest.
Fixes a couple tests, mostly associated with depending on absolute
URLs or editing the test providers after an injector had already
been created.
Remove karma-dart and associated files. Change gupfiles to run tests
via `pub run test` instead.
2016-03-04 02:27:44 +00:00
Vikram Subramanian
7455b907d1
Revert "feat(dart): Add a dev-mode check for undeclared lifecycle interfaces"
...
This reverts commit a3d7629134
.
Needs co-ordination with google3 changes.
2016-03-03 18:00:18 -08:00
Chuck Jazdzewski
19a08f3a43
feat(compiler): Added spans to HTML parser errors
...
Allows using the HTML parser in contexts errors are reported in a development tool such as an editor.
2016-03-03 22:51:57 +00:00
Tim Blasi
a3d7629134
feat(dart): Add a dev-mode check for undeclared lifecycle interfaces
...
Add a check in `ReflectionCapabilities#interfaces` which determines if
the passed-in type implements a Lifecycle Interface but does not declare
that it does so.
See https://goo.gl/b07Kii for details.
Closes #6849
2016-03-03 22:45:50 +00:00
Tobias Bosch
a10c02cb41
feat(iterable_differ): support immutable lists
...
Closes #7127
2016-03-03 18:29:01 +00:00
Brian Ford
7d44b8230e
fix(router): support outlets within dynamic components
...
Fixes internal b/27294172
2016-03-03 06:49:29 -08:00
Brian Ford
75343eb340
feat(router): add regex matchers
...
@petebacondarwin deserves credit for most of this commit.
This allows you to specify a regex and serializer function instead
of the path DSL in your route declaration.
```
@RouteConfig([
{ regex: '[a-z]+.[0-9]+',
serializer: (params) => `{params.a}.params.b}`,
component: MyComponent }
])
class Component {}
```
Closes #7325
Closes #7126
2016-03-02 16:08:19 -08:00
vsavkin
39b6e0efba
feat(transformers): collect information for CompileDiDependencyMetadata
2016-03-01 13:28:36 -08:00
Tobias Bosch
f60fa14767
feat(core): drop `ChangeDetectionStrategy.OnPushObserve`
...
BREAKING CHANGE:
`OnPushObserve` was an experimental
feature for Dart and had
conceptual performance problems,
as setting up observables is slow.
Use `OnPush` instead.
2016-03-01 13:28:10 -08:00
Julie Ralph
d900f5c075
chore(tests): lengthen timeout for templateUrl test
...
This was flaking on Travis occasionally because the TestComponentBuilder
is actually doing an XHR, and it was slow on the Edge browser.
Closes #7293
2016-03-01 21:01:56 +00:00
Kara Erickson
59629a0801
feat(i18n): added i18nPlural and i18nSelect pipes
...
Closes #7268
2016-03-01 16:40:48 +00:00
Tobias Bosch
b5e6319fa9
feat(core): add more debug APIs to inspect the application form a browser
...
Adds `window.getAllAngularRootElements()`
Adds `ng.coreTokens.ApplicationRef`
Adds `ng.coreTokens.Ngzone`
Closes #7045
Closes #7161
2016-03-01 16:01:28 +00:00
Tobias Bosch
c9a3df970b
feat(di): drop support for injecting types with generics in Dart
...
BREAKING CHANGE:
In Dart we used to support injecting types with generics. As this feature is hard to implement with the upcoming codegen we are dropping it.
Merge cl/115454020 in G3 with this change.
Closes #7262
2016-03-01 05:43:49 +00:00
Misko Hevery
b47f80ec76
fix(Router): Query strings are copied for HashLocationStrategy
...
b/27210802 P1
Closes #7298
2016-02-29 18:44:56 +00:00
Tobias Bosch
ebd438ff5e
fix(change_detection): allow to destroy `OnPush` components inside of a host event.
...
Closes #7192
2016-02-29 18:44:13 +00:00
vsavkin
ebe531bf92
feat(transformers): collect data needed for the template compiler
...
Closes #7299
2016-02-26 17:56:40 +00:00
Tobias Bosch
1779caf5f8
fix(core): support `ngFor` that has an `ngIf` as last node
...
Fixes #6304
Closes #6878
2016-02-25 23:42:17 +00:00