8a91d71625
feat(http.ts): export BrowserXHR
...
needed for replacing BrowserXHR bindings with mock/server version etc
Closes #2641
2015-07-27 16:34:34 -07:00
4dc6d748a9
fix(lowercase,uppercase): make stateless pipes
...
same problem as `json` previously of transforming only on reference
check
Closes #3173
Closes #3189
2015-07-27 16:28:48 -07:00
99587a9907
docs: Update 02_directives.md
...
Closes #3191
2015-07-27 16:27:00 -07:00
eebd736cfe
feat(build): initial SauceLabs setup
...
Closes #2347
2015-07-27 16:15:28 -07:00
05c4fb2fac
docs(typo): ngzone referencing misspelled api
...
Closes #3292
2015-07-27 16:09:05 -07:00
448264be39
fix(core): fix type error in setElementProperty
...
Convert propertyValue to string when calling setElementAttribute.
Closes #3279
2015-07-27 16:05:10 -07:00
71bb4b3ee5
feat(change_detection): generate checkNoChanges only in dev mode
2015-07-27 15:50:19 -07:00
a2bb81c406
Revert "fix(url_resolver): in Dart make package urls relative to AppRootUrl"
...
This reverts commit 469afda53e
.
2015-07-27 14:15:02 -07:00
7cbaf1076f
refactor(Async): Unify TS and Dart PromiseCompleter naming
...
Also add explicit typing wherever we use PromiseCompleter
2015-07-27 10:28:07 -07:00
a8b57256c8
fix(class): allow class names with mixed case
...
Fixes #3001
BREAKING CHANGE:
View renderer used to take normalized CSS class names (ex. fooBar for foo-bar).
With this change a rendered implementation gets a calss name as specified in a
template, without any transformations / normalization. This change only affects
custom view renderers that should be updated accordingly.
Closes #3264
2015-07-27 16:46:42 +02:00
329a6e00dc
chore(API): cleaned up top level imports (render)
2015-07-25 03:20:15 +00:00
c83a3f3372
chore(docs): added more docs for core.ts
2015-07-25 03:20:12 +00:00
0906ee8a4e
refactor(change_detect): Abstract name logic into NameRegistry
...
Create `NameRegistry`, responsible for understanding how names are
generated for change detector fields and variables.
Use `NameRegistry` for both JS Jit & Dart pre-generated detectors.
Making progress on #3248
2015-07-24 18:58:09 -07:00
23cd385f20
fix(dart/transform): Handle mixed lifecycle specs
...
Update the transformer to handle classes which both have a `lifecycle`
value and `implement` lifecycle interfaces.
Closes #3276
2015-07-24 18:02:04 -07:00
45b10a1f0f
cleanup(forms): value accessors inject NgControl only from self
2015-07-24 16:56:22 -07:00
469afda53e
fix(url_resolver): in Dart make package urls relative to AppRootUrl
2015-07-24 16:37:01 -07:00
c2bbda02a1
feat(change_detection): provide error context for change detection errors
2015-07-24 15:45:26 -07:00
e744409cb9
feat(exception_handler): print originalException and originalStack for all exceptions
2015-07-24 15:45:26 -07:00
0a8b3816f7
style(lexer): idiomatic TypeScript
...
Closes #3228
2015-07-24 15:40:32 -07:00
bc21aa0124
refactor(di/injector): fixes typo in InjectorStrategy interface
...
Closes #3269
2015-07-24 15:36:27 -07:00
2577f5eebf
test(query): adds a test for query in the presense of projection.
...
Query uses only the logical structure of the application, so it is not
affected by projection, which only the rendering structure.
Closes #3278
2015-07-24 15:30:57 -07:00
f575ba60fb
fix(transformer): Don't throw on annotations that don't match a descriptor.
...
Closes #3280
2015-07-24 15:29:14 -07:00
5b5de6662f
chore(transformer): Use class for reflection info instead of a map
...
closes https://github.com/angular/angular/issues/906
2015-07-24 13:12:57 -07:00
a8b75c3d41
feat(testability): hook zone into whenstable api with async support
...
closes(#428 )
2015-07-24 12:46:12 -07:00
19d8b221b4
fix(typings): test our .d.ts with --noImplicitAny
...
This matches how DefinitelyTyped tests it, so we are
one step closer to publishing the same file we generate.
See #3195
2015-07-24 11:24:44 -07:00
345fa521dd
fix(change_detection): convert interpolated null values to empty strings
...
Fixes #3007
Closes #3271
2015-07-24 18:05:06 +02:00
16493e9769
refactor(integration_test): remove unused imports
2015-07-24 18:05:06 +02:00
dbbb7385f5
docs(annotations): remove reference to Parent
annotation
...
This annotation was removed in 6f4a39c337
2015-07-23 19:21:28 -07:00
3a7c9e4c62
docs(links): change bad links for Type RenderViewRef RenderFragmentRef, onEventDoneFn, and Renderer api.
2015-07-23 19:21:28 -07:00
408618b836
feat(url_resolver): support package: urls ( fixes #2991 )
2015-07-23 18:35:05 -07:00
771c0170d9
feat(web-workers) Add WebWorker Renderer
...
Allows angular apps to be rendered from the webworker!
Closes #3052 , #3053 , and #3097
2015-07-23 18:29:10 -07:00
1438922ffb
fix(class): correctly clean up on destroy
...
Fixes #3249
Closes #3256
2015-07-23 17:13:33 -07:00
fd46b49ea6
feat(transformers): directive aliases in Dart transformers ( fix #1747 )
2015-07-23 15:25:32 -07:00
46502e4d61
fix(projection): allow more bound render elements than app elements.
...
Fixes #3236
Closes #3247
2015-07-23 15:05:46 -07:00
b44b06c2c9
fix(projection): allow to project to a non text node
...
We already had a test for this, but too low level that it did not catch this null value in `hasNativeShadowRoot`
Fixes #3230
Closes #3241
2015-07-23 14:29:15 -07:00
5ec67ee2a7
fix(compiler): prevent race conditions
...
Previously, the compiler would detect cycles where there were none just because of other components that were compiled in parallel. Furthermore, the way ProtoView merging was triggered could result into early exits resulting in errors when trying to instantiate ProtoViews.
Fixes #3206
Closes #3211
2015-07-23 14:28:38 -07:00
03c8e7428f
fix(element_injector): do not throw when cannot find element when trying to report an error
2015-07-23 11:22:04 -07:00
70792c744d
refactor(exception_handler): unified all exception handling
...
BREAKING CHANGE
Previously it was possible to pass a custom error reporter to bootstrap, which was used only during the construction of Injector. This had limited utility, so this capability has been removed.
2015-07-23 11:22:04 -07:00
fdf226ab69
feat(exception_handler): change ExceptionHandler to output context
2015-07-23 11:22:04 -07:00
bd65b63c65
fix(transformer): Loggers now are per zone and each transform runs in its own zone
2015-07-23 09:36:04 -07:00
09226cdd75
chore(dart logging): Only print relevant messages in debug mode.
2015-07-23 07:32:30 -07:00
3531bb7118
feat(bootstrap): remove the need for explicit reflection setup in bootstrap code
...
BREAKING CHANGES:
Dart applications and TypeScript applications meant to transpile to Dart must now
import `package:angular2/bootstrap.dart` instead of `package:angular2/angular2.dart`
in their bootstrap code. `package:angular2/angular2.dart` no longer export the
bootstrap function. The transformer rewrites imports of `bootstrap.dart` and calls
to `bootstrap` to `bootstrap_static.dart` and `bootstrapStatic` respectively.
2015-07-22 17:02:32 -07:00
fdffcaba9b
feat(router): use querystring params for top-level routes
...
Closes #3017
2015-07-22 14:40:55 -07:00
a9e7c90960
cleanup: removed an invalid export
2015-07-22 14:22:50 -07:00
5a86f85936
feat(di): added context to runtime DI errors
2015-07-22 14:22:46 -07:00
8ecb632d70
feat(lang): added "context" to BaseException
2015-07-22 14:21:44 -07:00
8ad4ad57d1
feat(dart/transform): Populate lifecycle
from lifecycle interfaces
...
When a `Directive` implements a lifecycle interface (e.g. `OnChange` or
`OnInit`), populate its `lifecycle` property if not already populated).
Closes #3181
2015-07-22 11:34:29 -07:00
476988876c
test(router): refactor integration tests to use TestComponentBuilder
...
Closes #3182
2015-07-21 20:40:42 -07:00
6f4a39c337
refactor(di): removed @Parent
...
BREAKING CHANGE
The @Parent annotation has been removed. Use @Ancestor instead.
@Parent was used to enforce a particular DOM structure (e.g., a pane component is a direct child of the tabs component).
DI is not the right mechanism to do it. We should enforce it using schema instead.
2015-07-21 14:39:28 -07:00
a472eacc07
fix(content_projection): allow to project text nodes to a place without bindings
...
Fixes #3163
Closes #3179
2015-07-21 14:18:35 -07:00