Jeff Cross
f14b212dc9
refactor: export core APIs from angular2/core
...
This change moves many APIs to the angular2/core export.
This change also automatically adds FORM_BINDINGS in
the application root injector.
BREAKING CHANGE:
Many dependencies that were previously exported from specific
APIs are now exported from angular2/core. Affected exports, which
should now be included from angular2/core include:
angular2/forms
angular2/di
angular2/directives
angular2/change_detection
angular2/bootstrap (except for dart users)
angular2/render
angular2/metadata
angular2/debug
angular2/pipes
Closes #3977
2015-09-05 07:01:34 +00:00
Jeff Cross
6d13cf9b8f
refactor(core): move more modules into core
2015-09-05 07:01:34 +00:00
Jeff Cross
2d4f331c63
chore: update ts2dart version
2015-09-05 07:01:34 +00:00
Victor Berchet
86bda288bd
fix(DirectiveResolver): Synced with latest changes
...
Closes #3928
2015-09-05 01:02:33 +00:00
Victor Berchet
3d38ec8aac
refactor(Lifecycle hooks): move the hooks to their own module (lifecycle_hooks)
...
BREAKING CHANGE
Lifecycle hooks now live in the `angular2/lifecycle_hooks` module.
They previously lived in the `metadata` module.
2015-09-05 01:02:33 +00:00
Victor Berchet
8302afffb4
refactor(LifecycleEvent): remove LifecycleEvent
...
fixes #3924
BREAKING CHANGE
The `lifecycle` configuration for directive has been dropped.
Before
// Dart
@Component({lifecycle: const [LifecycleEvent.OnChanges], ...})
class MyComponent implements OnChanges {
void onChanges() {...}
}
// Typescript
@Component({lifecycle: [LifecycleEvent.OnChanges], ...})
class MyComponent implements OnChanges {
onChanges(): void {...}
}
// ES5
var MyComponent = ng.
Component({lifecycle: [LifecycleEvent.OnChanges], ...}).
Class({
onChanges: function() {...}
});
After
// Dart
@Component({...})
class MyComponent implements OnChanges {
void onChanges() {...}
}
// Typescript
@Component({...})
class MyComponent implements OnChanges {
onChanges(): void {...}
}
// ES5
var MyComponent = ng
.Component({...})
.Class({
onChanges: function() {
}
});
2015-09-05 01:02:33 +00:00
Harry Terkelsen
d8c5ab232c
refactor: add leading underscore to private fields
...
Closes #4001
2015-09-05 00:54:50 +00:00
vsavkin
15164a8e6c
fix(reflector): merge prop metadata from getters and setters
...
Closes #4006
2015-09-04 23:44:22 +00:00
Rado Kirov
e9ad100b1f
fix(build): switch to cjs output for es5.
...
System output does not work at the current versions of TS and
system.js. Will revisit after upgrading TS.
Removes unused traceur tooling.
Closes #3974
2015-09-04 23:10:34 +00:00
vsavkin
df8e15cab7
feat(core): add support for @HostBinding and @HostListener
...
Example:
@Directive({selector: 'my-directive'})
class MyDirective {
@HostBinding("attr.my-attr") myAttr: string;
@HostListener("click", ["$event.target"])
onClick(target) {
this.target = target;
}
}
Closes #3996
2015-09-04 22:18:22 +00:00
vsavkin
855cb16cc7
refactor(event_manager): use multi bindings to configure EventManager
...
Closes #3978
2015-09-04 21:57:36 +00:00
Rado Kirov
5ebeaf7c9b
feat(query): implement query update mechanism based on views.
...
Instead of working with finer grained element injectors, queries now
iterate through the views as static units of modification of the
application structure. Views already contain element injectors in the
correct depth-first preorder.
This allows us to remove children linked lists on element injectors and a
lot of book keeping that is already present at the view level.
Queries are recalculated using the afterContentChecked and
afterViewChecked hooks, only during init and after a view container has
changed.
BREAKING CHANGE:
ViewQuery no longer supports the descendants flag. It queries the whole
component view by default.
Closes #3973
2015-09-04 21:39:35 +00:00
Alfonso Presa
be954115f8
feat(NgFor): $last property support
...
Makes a new `$last` property available during the loop with a boolean
showing if it's the last item in the iteration.
closes : #3102
Closes #3991
2015-09-04 21:01:42 +00:00
Tobias Bosch
2384082b5c
feat(compiler): add stylesheet compiler
...
Part of #3605
Closes #3891
2015-09-04 19:22:43 +00:00
Tobias Bosch
2a126f72f3
feat(tests): add helper to eval a module
...
Needed later for unit tests for code gen and runtime code
in #3605
2015-09-04 19:22:43 +00:00
vsavkin
896add7d77
feat(core): add support for @Property and @Event decorators
...
Example:
@Directive({selector: 'my-selector'})
class MyDirective {
@Property() prop;
@Property('el-prop') prop2;
@Event() event;
@Event('el-event') event2;
}
Closes #3992
2015-09-04 18:33:31 +00:00
mgechev
337ce21149
docs(util): fix typos
...
Closes #3988
2015-09-04 15:35:29 +00:00
Igor Minar
34deda594f
fix(test_lib): add missing types
2015-09-03 23:52:10 +00:00
Igor Minar
687e7b565f
fix(test_lib): reexport fake_async via angular/test
...
previously fake_async was not being publically exported at all
2015-09-03 23:52:10 +00:00
Igor Minar
ddde7117a7
fix(fake_async): remove unused variable
2015-09-03 23:52:10 +00:00
Igor Minar
44c303aad2
refactor(collection.ts): simplify ListWrapper.clear implementation
2015-09-03 23:52:10 +00:00
Igor Minar
53d0861372
style(di): fix a variable name typo
2015-09-03 23:52:09 +00:00
Jason Teplitz
696edde17c
fix(WebWorker): Fix Todo Server demo and add test to ensure the demo can bootstrap.
...
Closes #3970
2015-09-03 18:52:06 +00:00
vsavkin
3ff321475d
cleanup(di): fix dart analyzer errors
...
Closes #3962
2015-09-03 15:18:18 +00:00
vsavkin
79994b2abf
refactor(forms): use multibindings instead of query to get a list of validators
...
BREAKING CHANGE
Before:
@Directive({selector: '[credit-card]', bindings: [new Binding(NgValidator, {toAlias: forwardRef(() => CreditCardValidator)})]})
class CreditCardValidator {
get validator() { return CreditCardValidator.validate; }
static validate(c): StringMap<string, boolean> {...}
}
After:
function creditCardValidator(c): StringMap<string, boolean> {...}
@Directive({selector: '[credit-card]', bindings: [new Binding(NG_VALIDATORS, {toValue: creditCardValidator, multi: true})]})
class CreditCardValidator {}
2015-09-03 15:18:18 +00:00
vsavkin
7736964a37
feat(di): add support for multi bindings
...
BREAKING CHANGE
Previously a content binding of a component was visible to the directives in its view with the host constraint. This is not the case any more. To access that binding, remove the constraint.
2015-09-03 15:18:18 +00:00
Tobias Bosch
2fea0c2602
feat(compiler): allow to create ChangeDetectors from parsed templates
...
Part of #3605
Closes #3950
2015-09-02 23:20:14 +00:00
Rado Kirov
5c9613e084
test(query): add a test for view query with var bindings
...
Closes #3920
Closes #3946
2015-09-02 20:26:59 +00:00
Rado Kirov
01cdd31339
fix(query): clean-up queryref during dehydration
...
The QueryRef objects persists during dehydration but needs to be
cleaned-up by removing callbacks and previous elements.
Closes #3944
Closes #3948
2015-09-02 19:00:17 +00:00
Victor Berchet
44a991e245
refactor(test_lib): do not execute jasmine test as async if not required
...
fixes #3893
2015-09-01 17:49:24 -07:00
Jason Teplitz
358908e605
feat(WebWorker): Expose MessageBroker API
...
Closes #3942
2015-09-01 23:53:54 +00:00
Misko Hevery
b9cf945b30
chore(di): do not double export DI
2015-09-01 13:28:15 -07:00
Misko Hevery
5b8ce1e42a
chore(http.d.ts): have http properly reexport core types
2015-09-01 13:28:15 -07:00
Tim Blasi
7c7888de4f
fix(ComponentUrlMapper): support relative template URLs in Dartium
...
When running in Dartium without using transformers (i.e. with a normal
static web server), handle relative template URLs. This works by using
mirrors to get the URL of the library where the component class is
defined.
Closes #2771
Closes #3743
2015-09-01 18:19:55 +00:00
vsavkin
60ce884671
feat(core): remove the (^ syntax and make all DOM events bubbling
...
BREAKING CHANGE
Before
<div (^click)="onEventHandler()">
<button></button>
</div>
After
<div (click)="onEventHandler()">
<button></button>
</div>
Closes #3864
2015-09-01 15:54:47 +00:00
Brian Ford
ad1bd5fc11
refector(router): rename outlet integration spec to navigation spec
...
The new name better reflects the behavior under test.
2015-08-31 23:24:09 +00:00
Isaac Park
3791c4a682
fix(RouteRegistry): initialize RouteParams.params
...
Fix a bug caused by RouteRegistry.generate not initializing RouteParams.params to a StringMap
Closes #3755
2015-08-31 22:02:50 +00:00
Victor Berchet
ecf6ba3974
refactor: prefer const over var for constants
...
Closes #3818
2015-08-31 21:59:33 +00:00
Victor Berchet
b29b045d78
refactor(WTF): rename scopes to follow coding conventions
2015-08-31 21:59:33 +00:00
Misko Hevery
c349bbbc08
refactor(ViewEncapsulation): rename to PascalCase
...
BREAKING CHANGE
- ViewEncapsulation.EMULATED => ViewEncapsulation.Emulated
- ViewEncapsulation.NATIVE => ViewEncapsulation.Native
- ViewEncapsulation.NONE => ViewEncapsulation.None
Closes #3889
2015-08-31 21:32:10 +00:00
Misko Hevery
e916836261
chore(ts2dart): replace List with Array
...
Closes #3514
2015-08-31 21:32:10 +00:00
Misko Hevery
4415855683
refactor(ngProbe): rename to ng.probe
...
BREAKING CHANGE:
Closes #3786
- ngProbe => ng.probe
2015-08-31 21:32:10 +00:00
Misko Hevery
cebd670a8e
refactor(ChandeDetection): Rename ChangeDetectorRef.markForCheck
...
BREAKING CHANGE
Closes #3403
- ChangeDetectorRef.requestCheck() => ChangeDetectorRef.markForCheck()
2015-08-31 21:32:10 +00:00
Misko Hevery
b8be4bfaaf
fix(router): re-export of Type
...
Closes #3632
Closes #3704
2015-08-31 20:47:37 +00:00
Tim Blasi
6c3c6060a5
fix(core): Fix type error
...
Ensure that values passed to `DomRenderer#setElementAttribute` are
strings. Currently, booleans can be passed to this method, resulting in
failures when running in Dart checked mode.
2015-08-31 13:02:29 -07:00
Tim Blasi
46dd5fcbb0
refactor(transform): Remove reflection_entry_points parameter
...
Remove the now unnecessary `reflection_entry_points` parameter from the
Angular 2 transformer.
Support glob syntax for `entry_points`.
2015-08-31 13:02:29 -07:00
Jason Teplitz
9619636ba7
fix(WebWorker): WebWorkerRenderer removes views after they're destroyed
...
closes #3240
Closes #3894
2015-08-31 18:33:25 +00:00
Brian Ford
fa2c6791b4
docs(router): improve docs for RouterOutlet methods
...
Closes #3909
2015-08-31 18:09:32 +00:00
Brian Ford
ad16e9d910
refactor(router): move setting reuse flag from RouterOutlet to Router
2015-08-31 18:09:32 +00:00
Brian Ford
7de447e4b5
test(router): fix typo in spec name
2015-08-31 18:09:32 +00:00
Brian Ford
36eb9d392d
feat(router): router-link-active CSS class support
...
The `[router-link]` directive now applies the `router-link-active` CSS
class to the associated element whenever the link is active.
Closes #3209
2015-08-31 18:09:32 +00:00
Brian Ford
de37729823
feat(router): implement Router.isRouteActive
2015-08-31 18:09:32 +00:00
Brian Ford
e1a7e0329c
feat(router): hash-cons ComponentInstructions
2015-08-31 18:09:32 +00:00
Brian Ford
76e1f863a2
docs(router): add description for Url class
2015-08-31 18:09:32 +00:00
vsavkin
d49bc438e8
feat(core): added afterContentInit, afterViewInit, and afterViewChecked hooks
...
Closes #3897
2015-08-31 17:16:54 +00:00
Tobias Bosch
f93cd9ced7
feat(compiler): add full directive metadata and validation logic
...
With this, the new `TemplateParser` has feature/data parity with the `ProtoViewDto` of the `RenderCompiler`.
Part of #3605
Closes #3880
2015-08-28 14:55:47 -07:00
Tobias Bosch
0f4eb1b524
refactor(compiler): simplify metadata
2015-08-28 14:55:23 -07:00
Jason Teplitz
3468f7cfd5
chore(build): Add WebWorker bundle.
...
Closes #3207
Closes #3881
2015-08-28 20:40:16 +00:00
Marc Laval
be07390859
refactor(test_lib): BrowserDetection util
...
Closes #3805
2015-08-28 11:41:17 +02:00
Misko Hevery
551d9a1688
chore(LifecycleEvent): change to PascalCase / rename
...
BREAKING CHANGE
Closes #3863
- LifecycleEvent.onInit => LifecycleEvent.OnInit
- LifecycleEvent.onDestroy => LifecycleEvent.OnDestroy
- LifecycleEvent.onChange => LifecycleEvent.OnChanges
- LifecycleEvent.onCheck => LifecycleEvent.DoCheck
- LifecycleEvent.onAllChangesDone => LifecycleEvent.AfterContentChecked
- OnCheck.onCheck() => DoCheck.doCheck()
- OnChange.onChange() => OnChanges.onChanges()
- OnAllChangesDone.onAllChangesDone() => AfterContentChecked.afterContentChecked
Closes #3851
2015-08-27 22:32:21 -07:00
Misko Hevery
ac3f5106e4
refactor(view): remove hostActions
...
BREAKING CHANGE
Closes #3396
Replacement. Either direct DOM access or Renderer in WebWorkers.
2015-08-27 22:32:21 -07:00
Misko Hevery
37b042b361
chore: Make enum names consistent with TypeScript convention
...
BREAKING_CHANGE
Ts2Dart issue: https://github.com/angular/ts2dart/issues/270
TypeScript convention: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines
DartConvertion: https://www.dartlang.org/articles/style-guide/
Rename:
- NumberFormatStyle.DECIMAL => NumberFormatStyle.Decimal
- NumberFormatStyle.PERCENT => NumberFormatStyle.Percent
- NumberFormatStyle.CURRENCY => NumberFormatStyle.Currency
- RequestMethods.GET => RequestMethods.Get
- RequestMethods.POST => RequestMethods.Post
- RequestMethods.PUT => RequestMethods.Put
- RequestMethods.DELETE => RequestMethods.Delete
- RequestMethods.HEAD => RequestMethods.Head
- RequestMethods.PATCH => RequestMethods.Patch
- ReadyStates.UNSENT => ReadyStates.Unsent
- ReadyStates.OPEN => ReadyStates.Open
- ReadyStates.HEADERS_RECEIVED => ReadyStates.HeadersReceived
- ReadyStates.LOADING => ReadyStates.Loading
- ReadyStates.DONE => ReadyStates.Done
- ReadyStates.CANCELLED => ReadyStates.Canceled
2015-08-27 22:32:21 -07:00
Misko Hevery
69926dd002
refactor(change_detection): introduce enum ChangeDetectionStrategy
...
BREAKING CHANGE
Closes #2497
- change detection strategy type changes from string to ChangeDetectionStrategy
- CHECK_ONCE => ChangeDetectionStrategy.CheckOnce
- CHECKED => ChangeDetectionStrategy.Checked
- CHECK_ALWAYS => ChangeDetectionStrategy.CheckAlways
- DETACHED => ChangeDetectionStrategy.Detached
- ON_PUSH => ChangeDetectionStrategy.OnPush
- DEFAULT => ChangeDetectionStrategy.Default
- ON_PUSH_OBSERVE => ChangeDetectionStrategy.OnPushObserve
2015-08-27 21:41:46 -07:00
vsavkin
3bb27deecc
feat(exception_handler): changed ExceptionHandler to use console.error instead of console.log
...
Closes #3812
2015-08-28 00:09:01 +00:00
Tim Blasi
02d9e18279
chore(transform): Move registrations tests to modules_dart
...
This moves tests which were created in 104302a958
and were not moved in 88a5b8da0f
.
2015-08-27 20:54:47 +00:00
Richard Sentino
256b2dc9b7
chore: remove ENUM_INDEX from facade
...
The ENUM_INDEX utility was added to return the index of an enum
consistently between Dart and TypeScript, so that the index
could be used to look up the name of the enum. Since dart is no
longer supported by Http, and since no other part of the framework
is using this function, it has been removed.
Closes #3843
2015-08-27 08:39:24 -07:00
Richard Sentino
51285666d8
chore(http): remove RequestMethodsMap
...
This class was only added to do a reverse lookup of
RequestMethods enum to get its name (i.e. "GET") for Dart.
Since Dart is no longer supported by Http, method names
can just be retrieved with TypeScript's support for
enum name lookup,
i.e. RequestMethods[RequestMethods.GET] === 'GET',
making the RequestMethodsMap utility obsolete.
Closes #2904
2015-08-27 08:36:40 -07:00
Marc Laval
557d309377
chore(build): improve reliability of the saucelabs job
...
Closes #3848
2015-08-27 09:46:15 +02:00
Jason Teplitz
4ba4427510
feat(WebWorkers): Add WebSocket MessageBuses for debugging apps
...
Closes #3858
2015-08-26 19:07:53 -07:00
Tobias Bosch
9f576b0233
feat(compile): add HtmlParser, TemplateParser, ComponentMetadataLoader
...
First bits of new compile pipeline #3605
Closes #3839
2015-08-27 00:05:48 +00:00
vsavkin
343dcfa0c0
refactor(tests): removed @IMPLEMENTS
2015-08-26 15:06:25 -07:00
Tim Blasi
457eb5d69c
fix(WebWorker): Return boolean from `dispatchRenderEvent`
...
Update web_worker `dispatchRenderEvent` to return a boolean, which
[view.ts](https://github.com/angular/angular/blob/master/modules/angular2/src/core/render/dom/view/view.ts#L85 ) expects.
2015-08-26 14:12:45 -07:00
Jeff Cross
8ed22ce6e7
chore: update all import paths
2015-08-25 15:33:23 -07:00
Jeff Cross
10437ab85c
fix(http): change type declarations to interfaces and export EventEmitter
2015-08-25 15:33:22 -07:00
Jeff Cross
38a5a2a955
chore: move core modules into core directory
...
BREAKING CHANGE:
This change moves the http module into angular2/, so its import
path is now angular2/http instead of http/http.
Many other modules have also been moved around inside of angular2,
but the public API paths have not changed as of this commit.
2015-08-25 15:33:22 -07:00
Ted Sander
9cc1cd29ed
feat(url_resolver): Allow a developer to customize their package prefix
...
Allow a developer to specify a package prefix where the 'package:' dart urls
will be resolved. By default this will be '/packages' keeping the current
behavior, but allows for flexibility of different environments where a
developer may not control their directory structure.
Closes #3794
2015-08-25 16:53:06 +00:00
Alex Eagle
894af28529
fix(typings): include static members
...
Fixes #3175
Closes #3780
2015-08-25 16:49:37 +00:00
Jason Teplitz
21f60c5dce
refactor(WebWorker): Abstract message passing and serialization to UIMessageBroker
...
closes #3703
Closes #3815
2015-08-25 03:18:22 +00:00
Brian Ford
aeef19e2a6
refactor(router): reorganize 2.x tests
2015-08-24 20:55:50 +00:00
unknown
944ccc9a94
Removed unused parameter
...
Closes #3810
2015-08-24 20:41:05 +00:00
Brian Ford
3963e0ab39
refactor(router): rename HTML5LocationStrategy to PathLocationStrategy
...
"HTML5" is a bit confusing. We want to differentiate between persisting location state
to the URL path, and the URL hash. Hence `PathLocationStrategy`.
BREAKING CHANGE
`HTML5LocationStrategy` -> `PathLocationStrategy`
Closes #3776
2015-08-24 12:13:53 -07:00
keertip
a191c89193
refactor(dart/analyzer plugin): update to latest version of plugins
...
Closes #3681
2015-08-24 16:45:21 +00:00
Jeff Cross
88a5b8da0f
chore(transform): move transform module to modules_dart
...
The build/pure-packages.dart gulp task has also been updated to move the files into the angular2 tree.
Closes #3729
2015-08-24 03:39:07 +00:00
Rado Kirov
92da5430e7
fix(injector): support getRootInjectors on dehydrated injectors.
...
Closes #3760
2015-08-24 02:41:43 +00:00
Marc Laval
50eee42668
chore(build): add Android to CI
...
Closes #3756
2015-08-24 00:28:07 +02:00
Victor Berchet
5f0a0fd8d2
fix(wtf): fix NgZone.run instrumentation
...
Closes #3788
2015-08-23 18:52:09 +00:00
Pawel Kozlowski
b039ec3da3
fix(parser): detect and report interpolation in expressions
...
Fixes #3645
Closes #3750
2015-08-23 14:06:30 +00:00
Pawel Kozlowski
5ee9630be1
docs(CORE_DIRECTIVES): documentation update after renames
...
Closes #3791
2015-08-23 12:53:16 +00:00
Pawel Kozlowski
c4044102d6
test(ViewMetadata): use ViewMetadata consistently in tests
...
Closes #3746
2015-08-23 10:47:23 +00:00
Pawel Kozlowski
215c4aa8fb
fix(compiler): detect and report error for views with empty templateUrl
...
Fixes #3762
Closes #3768
2015-08-23 07:26:56 +00:00
Pawel Kozlowski
3871f89119
fix(ViewLoader): provide componentId in missing template / templateUrl errors
...
Befor this change it wasn't clear which component is faulty
2015-08-23 07:26:56 +00:00
Misko Hevery
5d403966d5
refactor: rename web-workers to web_workers
...
Closes #3683
2015-08-22 14:20:33 -07:00
vsavkin
e8e430e630
feat(change_detection): added support for observable components and directives
2015-08-21 15:44:45 -07:00
vsavkin
a9ce454b21
fix(change_detection): fixed reflect properties as attributes
...
Closes #3761
2015-08-21 19:08:32 +00:00
vsavkin
b6146394ae
refactor(change_detection): replaced devMode with ChangeDetectorGenConfig
2015-08-21 19:08:32 +00:00
Jason Teplitz
764726d78e
refactor(ApplicationRef): Move ApplicationRef to its own file
...
Closes #3763
2015-08-21 10:17:40 -07:00
Marc Laval
65344fcac9
chore(build): add IE9 to CI
...
Closes #3747
2015-08-21 15:46:26 +00:00
ericmartinezr
9d44ae3d32
fix(docs) Added more readable links
...
Follows https://github.com/angular/angular/pull/3677
I hope this works.
2015-08-21 05:17:28 +00:00
vsavkin
d2d0715568
feat(change_detection): do not reparse AST when using generated detectors
2015-08-21 05:16:31 +00:00
Misko Hevery
b986c54079
chore: remove int in favor for number
...
Closes #3511
2015-08-21 05:10:31 +00:00
yjbanov
8336881a85
feat: track unused reflection data
2015-08-20 18:20:53 -07:00
Marc Laval
b0d27ee896
chore(build): add IE10 to CI
2015-08-21 00:16:34 +02:00
Marc Laval
9ba2ab5cea
chore(build): add IE11 to CI
2015-08-21 00:16:33 +02:00
Marc Laval
1c9be9b5aa
chore(build): add Firefox to CI
2015-08-21 00:16:33 +02:00
vsavkin
195c5c21d4
fix(change_detection): update the right change detector when using ON_PUSH mode
...
Previously, in a case where you have a mix of ON_PUSH and DEFAULT detectors, Angular would update the status of a wrong detector.
2015-08-20 21:55:50 +00:00
Misko Hevery
9afcb00216
fix: wtf paramater passing on scope
...
Closes #3726
2015-08-20 13:47:44 -07:00
Brian Ford
964884e761
Revert "Revert "refactor(router): move ROUTE_DATA token into own file""
...
This reverts commit abb3bd266b
.
2015-08-20 13:19:18 -07:00
yjbanov
984e7b8e17
fix(dart): bad export in core.dart
2015-08-20 08:44:15 -07:00
Victor Berchet
abb3bd266b
Revert "refactor(router): move ROUTE_DATA token into own file"
...
This reverts commit 78a8ba2307
.
2015-08-20 08:06:24 -07:00
Brian Ford
78a8ba2307
refactor(router): move ROUTE_DATA token into own file
...
This change is to accomodate the router in Angular 1.x
2015-08-19 20:27:39 +00:00
Naomi Black
ffc63fc6d6
docs(dgeni): fix a dgeni link error due to ambiguous link
2015-08-19 12:25:13 -07:00
Jason Teplitz
0b59e664ec
feat(WebWorker) Add channel support to MessageBus
...
closes #3661 and #3686
2015-08-19 10:57:22 -07:00
Tim Blasi
104302a958
refactor(dart/transform): Remove unnecessary getter/setter codegen
...
Currently the transformer generates all getters and setters even when
creating pre-generated change detectors, which remove the need for them.
Generate getters and setters via the model provided by `ProtoViewDto`,
which contains enough information to allow omitting unnecessary getters
and setters from code output.
Allow generating getters, setters, and method names which are Dart
pseudo keywords.
Closes #3489
2015-08-19 17:36:12 +00:00
Tim Blasi
ba2c077b01
refactor(core): Create reusable RecursiveAstVisitor in ast.ts
2015-08-19 17:36:12 +00:00
Pawel Kozlowski
abb0e279a5
docs(metadata): correct ES5 annotation examples
...
Closes #3720
2015-08-19 15:55:49 +00:00
Marc Laval
873b6da120
chore(test): disable tests based on Intl API in non-Chrome browsers
...
Closes #3692
2015-08-19 09:45:34 +02:00
Victor Berchet
f0e7f13f30
doc(NgStyle): fix missing []
...
Closes #3711
2015-08-19 05:46:55 +00:00
Misko Hevery
ccfadb9b47
refactor: make bindings/directives names consistent
...
BREAKING CHANGE
- `routerDirectives` => `ROUTER_DIRECTIVES`
- `routerInjectables` => `ROUTER_BINDINGS`
- `ELEMENT_PROBE_CONFIG` => `ELEMENT_PROBE_BINDINGS`
2015-08-18 21:23:26 -07:00
Brian Ford
72e0b8f7dc
fix(router): allow router-link to link to redirects
...
Closes #3335
Closes #3624
2015-08-19 01:34:46 +00:00
Brian Ford
b5c4d8ba79
feat(facade): add maximum method for ListWrapper
2015-08-19 01:34:45 +00:00
Brian Ford
5c95b376b5
fix(router): subscribe should return subscription
...
Closes #3491
Closes #3695
2015-08-19 01:34:08 +00:00
ericmartinezr
63a94ee941
fix(docs) Fixes typo in ProtoViewRef class
...
Changed 'foctary' to 'factory'.
I wanted to change `{@link AppViewManager#createViewInContainer}` to `{@link AppViewManager#createViewInContainer}#createViewInContainer` and `{@link AppViewManager#createRootHostView}` to `{@link AppViewManager#createRootHostView}#createRootHostView` for readibility (see https://angular.io/docs/js/latest/api/core/ProtoViewRef-class.html it shows `AppViewManager and AppViewManager`). But I'm not sure if that'll work so I'm just going with the typo.
Closes #3677
2015-08-18 23:57:32 +00:00
Yegor Jbanov
ddcfd465ad
fix: <template> tag for browsers that do not suppor them
...
Closes #3636
2015-08-18 23:52:28 +00:00
Marc Laval
3b4965279c
feat(browser): support Edge
...
Closes #3667
2015-08-18 23:07:59 +00:00
Ian Riley
e68c978202
chore(npm): Upgrades systemjs to 0.18.3.
2015-08-18 21:45:12 +00:00
Rado Kirov
272ad61ab1
fix(injectors): reset the construction counter in dynamic strategy.
...
Adds tests for hydrate / dehydrate in cycle.
Closes #3635
2015-08-18 21:03:20 +00:00
yjbanov
5f7d4faa88
fix(docs): export bootstrap in core.ts but not in core.dart
2015-08-18 13:32:43 -07:00
gdi2290
235dec26fc
fix(browser_adapter.ts): baseElement.getAttribute
...
currently throwing an error
```error
Error during instantiation of LocationStrategy! (RouterLink -> Router
-> Location -> LocationStrategy).
ORIGINAL ERROR: TypeError: baseElement.attr is not a function
```
Closes #3214
2015-08-18 19:07:47 +00:00
vsavkin
cbfc9cb344
feat(change_detection): added an experimental support for observables
2015-08-18 19:00:04 +00:00
Daniel Rasmuson
ed81cb94b0
feat(router): user metadata in route configs
...
Provide the ability to attach custom data onto a route and retrieve
that data as an injectable (RouteData) inside the component.
Closes #2777
Closes #3541
2015-08-18 10:33:19 -07:00
Victor Berchet
1f54e64fcf
feat(PropertyBindingParser): support onbubble-event as an alternate syntax for (^event)
...
fixes #3448
Closes #3616
2015-08-18 17:30:48 +00:00
Misko Hevery
ea6673947c
refactor: rename annotations to metadata
...
BREAKING CHANGE (maybe)
Well as long as our customers use public API this should not be a
breaking change, but we have changed import structure as well as
internal names, so it could be breaking.
import:
angular2/annotations => angular2/metadata
Classes:
*Annotations => *Metadata
renderer.DirectiveMetadata => renderer.RendererDirectiveMetadata
renderer.ElementBinder => renderer.RendererElementBinder
impl.Directive => impl.DirectiveMetadata
impl.Component => impl.ComponentMetadata
impl.View => impl.ViewMetadata
Closes #3660
2015-08-17 21:23:25 +00:00
vsavkin
5e6317fecc
feat(change_detection): request a change detection check when an event happens
...
Closes #3679
2015-08-17 19:08:03 +00:00
vsavkin
823fa4689e
refactor(change_detection): generate handleEvent only when necessary
2015-08-17 19:08:03 +00:00
Rado Kirov
6c9e712c34
fix(query): do not visit dehydrated injectors.
2015-08-17 11:43:44 -07:00
vsavkin
4845583dcf
refactor(change_detector): made change detection responsible for processing events
...
Closes #3666
2015-08-17 15:39:00 +00:00
Isaac Park
8b655c7be3
docs(annotations): replaces old syntax for hostListeners with host
...
Closes #3672
2015-08-17 14:38:18 +02:00
Pascal Precht
a06f48e357
test(query_integration): remove duplicated change detection call
...
Closes #3673
2015-08-17 09:22:10 +00:00
Michael Goderbauer
841206c678
fix(testability): properly throw when no testability available
2015-08-15 19:44:58 -07:00
Jason Teplitz
296851797b
fix(WebWorkers): Run XHR requests on the UI
...
Fixes issues in dart where dart:html is not available in isolates and
allows for better profiling of XHR requests
Closes #3652
2015-08-15 21:54:51 +00:00
Victor Berchet
ee5df00146
refactor(directives): minor cleanup & refactoring
...
Closes #3629
2015-08-15 17:19:15 +00:00
Victor Berchet
89a0f2457d
doc(di): minor fixes
...
Closes #3614
2015-08-15 16:06:01 +00:00
Brian Ford
26d2ea8afc
fix(router): fix regression with generating links to async routes
...
Closes #3650
2015-08-14 22:32:48 +00:00
Rado Kirov
2686316c90
test(query): adds a view query test in presence of a long ng-for.
...
Closes #3638
Closes #3649
2015-08-14 21:04:29 +00:00
Pawel Kozlowski
83b69e8edc
chore: add repository field to npm package.json files
...
Fixes #2366
Closes #3621
2015-08-14 18:09:52 +00:00
gdi2290
35a83b495a
feat(query_list): delegate `toString` to `_results` array
...
Closes #3004
2015-08-14 03:42:11 +00:00
Victor Berchet
2fcb4cb769
test(Router): increase the timeout for the back button test
...
The test would fail on Ubuntu 15.04 + Chrome 46 with the standard
timeout.
2015-08-13 17:50:16 -07:00
vsavkin
da4bcd5d91
docs: removed outdated docs
...
Closes #3581
2015-08-13 21:18:31 +00:00
Misko Hevery
38945955ab
refactor: Remove IQueryList
...
BREAKING CHANGE:
Closes #3577
2015-08-13 21:18:31 +00:00
Misko Hevery
b7837389d7
refactor: Remove isDart from public API
...
BREAKING CHANGE:
- `IS_DARTIUM` no longer exported
2015-08-13 21:18:31 +00:00
Misko Hevery
5c328adb4b
refactor(di): Visibility.(Private|Public|PublicAndPrivate)
...
BREAKING CHANGE:
Rename:
- `PRIVATE` => `Visibility.Private`
- `PUBLIC` => `Visibility.Public`
- `PUBLIC_AND_PRIVATE` => `Visibility.PublicAndPrivate`
2015-08-13 21:18:31 +00:00
Misko Hevery
60af19f0e1
refactor: rename all const to UPPER_CASE
...
Closes #3573
BREAKING CHANGE
Rename:
- `appComponentTypeToken` => `APP_COMPONENT`
- `coreDirectives` => `CORE_DIRECTIVES`
- `formDirectives` => `FORM_DIRECTIVES`
- `formInjectables` => `FORM_BINDINGS`
- `httpInjectables` => `HTTP_BINDINGS`
- `jsonpInjectables` => `JSONP_BINDINGS`
- `PROTO_CHANGE_DETECTOR_KEY` => `PROTO_CHANGE_DETECTOR`
- `appComponentRefPromiseToken` => `APP_COMPONENT_REF_PROMISE`
- `appComponentTypeToken` => `APP_COMPONENT`
- `undefinedValue` => `UNDEFINED`
- `formDirectives` => `FORM_DIRECTIVES`
- `DOCUMENT_TOKEN` => `DOCUMENT`
- `APP_ID_TOKEN` => `APP_ID`
- `MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE_TOKEN` => `MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE`
- `appBaseHrefToken` => `APP_BASE_HREF`
2015-08-13 21:18:31 +00:00
Ted Sander
1d65b38b28
feat(test): find testabilities across dart js applications
...
Find angular testability objects across different dart js contexts by
registering each application in a global array and interrogating each
for testabilities.
Closes #3611
2015-08-13 11:25:14 -07:00
Miško Hevery
64ebf278c0
fix: improper use package name in facade
...
Closes #3613
2015-08-13 05:04:00 +00:00
vsavkin
416fd085b1
refactor(pipes): removed BasePipeTrasnform
...
Closes #3608
2015-08-13 01:39:21 +00:00
vsavkin
839edaa15b
feat(pipes): changed PipeTransform to make onDestroy optional
...
BREAKING CHANGE:
Before:
Angular called onDestroy on all pipes.
After:
Angular calls onDestroy only on pipes that have the onDestroy method.
2015-08-13 01:39:21 +00:00
Tim Blasi
aa480fee72
feat(dart/transform): Support `part` directives
...
Allow users to split libraries using the `part` directive.
Closes #1817
2015-08-13 00:28:42 +00:00
Jeff Cross
b5fb05b735
feat(npm): add typescript block to package.json
...
This makes it simple to run the `tsd link` command in a project
to automatically include paths to typings files. The definitions
also include transitive dependencies of rx.d.ts and es6-promise.d.ts.
Closes #3590
Closes #3609
2015-08-12 22:05:41 +00:00
Michael Goderbauer
8f5360c387
feat(testability): option to disable tree walking
2015-08-12 21:56:24 +00:00
Pawel Kozlowski
ed25a29cc8
fix(NgClass): take initial classes into account during cleanup
...
Closes #3557
2015-08-12 20:08:03 +00:00
Pawel Kozlowski
a7a1851c0f
feat(compiler): allow binding to className using class alias
...
Closes #2364
2015-08-12 20:08:03 +00:00
Miško Hevery
f2f4b905e5
fix(docs): ng-non-bindable
...
Closes #3607
2015-08-12 19:00:51 +00:00
Michael Goderbauer
08dbe87819
fix(testability): throw if no testability available
...
this implements the same behavior for dart that is already implemented in the typescript version
2015-08-12 10:21:32 -07:00
Pawel Kozlowski
218b037d98
test(NgClass): remove code duplication in tests
2015-08-12 10:29:37 +02:00
Rado Kirov
2150a8f9d1
feat(query): view query is properly updated when dom changes.
...
Fixes a bug in view manager util where sibling injector is not correctly
calculated.
ViewQuery no longer includes the view's initiating component injector.
Includes some refactoring of view methods and a removal of a polymorphic
map call.
Closes #3033
Closes #3439
2015-08-12 06:16:09 +00:00
Tobias Bosch
585ea5d600
feat(query): allow to query for `TemplateRef`
...
Part of #1989
Closes #3202
2015-08-12 01:51:18 +00:00
vsavkin
5b5d31fa9a
feat(pipe): added the Pipe decorator and the pipe property to View
...
BREAKING CHANGE:
Instead of configuring pipes via a Pipes object, now you can configure them by providing the pipes property to the View decorator.
@Pipe({
name: 'double'
})
class DoublePipe {
transform(value, args) { return value * 2; }
}
@View({
template: '{{ 10 | double}}'
pipes: [DoublePipe]
})
class CustomComponent {}
Closes #3572
2015-08-12 00:38:40 +00:00
Yegor Jbanov
280d8f3148
chore: add dartdoc compliance checks to build
...
Closes #3582
2015-08-11 22:53:08 +00:00
Jeff Cross
5a405011de
refactor(http): move http files to top-level module
...
Closes #2680
Closes #3417
2015-08-11 22:32:17 +00:00
Brian Ford
903a0f0513
fix(router): throw when component in route config is not defined
...
Close #3265
Closes #3569
2015-08-11 21:21:32 +00:00
Caitlin Potter
77d3668432
feat(http): serialize search parameters from request options
...
- Extends URLSearchParams API to include operations for combining
different URLSearchParams objects:
These new methods include:
setAll(otherParams): performs `this.set(key, values[0])` for each
key/value-list pair in `otherParams`
appendAll(otherParams): performs `this.append(key, values)` for
each key/value-list pair in `otherParams`
replaceAll(otherParams): for each key/value-list pair in
`otherParams`, replaces current set of values for `key` with
a copy of the list of values.
- RequestOptions do not merge search params automatically (because
there are multiple ways to do this). Instead, they replace any
existing `search` field if `search` is provided. Explicit merging
is required if merging is desirable.
- Some extra test coverage added.
Closes #2417
Closes #3020
2015-08-10 16:29:36 -07:00
Jeff Cross
dfa5103b1d
feat(typings): allow defining custom namespace for bundle
...
Allows declaring a bundle's namespace in generated typings file,
which should correspond to the global object representing the module
inside its bundle.
BREAKING CHANGE
The router was previously exported as ng.router in the
angular.sfx.dev.js bundle, but now it is exported as ngRouter.
Closes #2948
Closes #3544
2015-08-10 12:59:35 -07:00
Pawel Kozlowski
6bd95c1455
feat(coreDirectives): add NgClass to coreDirectives
...
Closes #3534
2015-08-10 19:52:10 +00:00
Pawel Kozlowski
4f5e405676
fix(UrlResolver): encode URLs before resolving
...
This commits makes JS implementation to behave like Dart one.
Fixes #3543
Closes #3545
2015-08-10 19:50:10 +00:00
Ted Sander
86eb46af09
fix(transformers): be more specific in the imports to rewrite
...
Instead of just matching on the filename match on the full uri.
Closes #3473
Closes #3523
2015-08-10 19:07:48 +00:00
Kevin Moore
6651aab11f
refactor: allow the latest dart_style version
2015-08-10 19:05:09 +00:00
Brian Ford
5a8b1bcaec
docs(router): add documentation for lifecycle hooks
...
Closes #3334
2015-08-10 10:47:37 -07:00
Brian Ford
ac6227e434
feat(router): auxiliary routes
...
Closes #2775
2015-08-10 10:47:37 -07:00
Matias Niemelä
24eabb9bb1
test(matchers): add support for toHaveClass in tests
2015-08-08 02:22:45 +00:00
Michael Goderbauer
574bbea747
fix(Testability): fix type error in getAllAngularTestability (dart)
...
This fixes the following type error that is thrown when calling getAllAngularTestability() while running Dartium in checked mode:
type 'MappedListIterable' is not a subtype of type 'List<PublicTestability>' of 'publicTestabilities'.
2015-08-07 17:35:19 -07:00
jteplitz
a1c53eec6b
Refactor(WebWorker): Unify WebWorker naming
...
Closes #3205
2015-08-07 14:43:52 -07:00
Jason Teplitz
84463cf0bd
Feat(WebWorker): Add WebWorker Image Filter Demo
2015-08-07 11:25:07 -07:00
vsavkin
2dcf714d2b
refactor(pipes): use Injector instead of pipe factories for pipe instantiation
...
BREAKING CHANGE
- Pipe factories have been removed.
- PIpe names to pipe implementations are 1-to-1 instead of 1-to-*
Before:
class DateFormatter {
transform(date, args){}
}
class DateFormatterFactory {
supporst(obj) { return true; }
create(cdRef) { return new DateFormatter(); }
}
new Pipes({date: [new DateFormatterFactory()]})
After
class DateFormatter {
transform(date, args){}
}
new Pipes({date: DateFormatter})
2015-08-07 10:02:11 -07:00
vsavkin
06da60f4b7
feat(di): added resolveAndInstantiate and instantiateResolved to Injector
...
These two methods can be used to create objects in the context of the injector without storing them in the injector.
2015-08-07 08:29:19 -07:00
Pawel Kozlowski
ff1b110ae1
fix(CSSClass): change selector to ng-class
...
BREAKING CHANGE:
The selector for the CSSClass directive was changed
from [class] to [ng-class]. The directive itself was
renamed from CSSClass to NgClass
Closes #3498
2015-08-07 14:56:41 +02:00
Pawel Kozlowski
748c2d6c97
fix(compiler): strip <script> tag from templates
...
Fixes #2766
Closes #3486
2015-08-07 11:54:33 +00:00
Pawel Kozlowski
339071cb07
refactor(CompileElement): remove unused methods
...
Closes #3500
2015-08-07 09:20:27 +00:00
Marc Laval
a37de36fa6
fix(test_lib): run unit tests in default Documnent
...
Closes #3501
Fixes #3475
2015-08-07 09:57:59 +02:00
Naomi Black
cf6ffd5469
docs(fix-docgen): Fix docgen issues with some recent updates to core
2015-08-06 23:17:22 -07:00
vsavkin
106a28b8dc
feat(refactor): replaced ObservablePipe and PromisePipe with AsyncPipe
2015-08-07 02:10:32 +00:00
Alex Eagle
643c71740e
chore(build): enable type-checking for TypeScript ES6 emit.
...
This requires delicate handling of type definitions which collide, because
we use TypeScript-provided lib.d.ts for --target=es5 and lib.es6.d.ts for
--target=es6.
We need to include our polyfill typings only in the --target=es5 case,
and the usages have to be consistent with lib.es6.d.ts.
Also starting with this change we now typecheck additional modules,
so this fixes a bunch of wrong typings which were never checked before.
Fixes #3178
2015-08-06 16:57:52 -07:00
Tim Blasi
40a3cd2ab1
style(dart/transform): Do not format generated code by default
...
Formatting code requires time and memory during the build -- do not do
it unless explicitly requested via a parameter to the transformer.
Add an entry to the
[wiki](https://github.com/angular/angular/wiki/Angular-2-Dart-Transformer )
describing the added parameter.
2015-08-06 23:32:01 +00:00
Tim Blasi
3db0ae1dac
refactor(dart/transform): Show friendly messages for transform failures
...
Previously, the error messages coming out of the Dart transformer were
opaque when those errors came from the analyzer (for example, analyzer
parse errors). Log more useful errors when they are caught by the
transform code.
2015-08-06 22:28:10 +00:00
vsavkin
07b9be798c
fix(exception_handler): log errors that are thrown by the compiler
2015-08-06 15:26:24 -07:00
Alex Eagle
b4a062983b
fix(dart): @proxy is a value, not a factory
...
Previously I added parens everywhere to make this @proxy() because our typing indicated
it was a function that returned a decorator, but this breaks dart. Instead, the typing needs
to be changed.
Fixes #3494
2015-08-06 10:02:49 -07:00
Tim Blasi
f11f4e0b45
style(dart): Format with dartfmt v0.2.0
...
Format all pure Dart code with package:dart_style v0.2.0
Command:
```
find -type f -name "*.dart" | xargs dartformat -w
```
2015-08-05 11:04:29 -07:00
Brian Ford
450d3630cc
test(router): add tests for router.d.ts
...
Closes #3282
2015-08-05 00:29:32 +00:00
Marc Laval
166688348a
chore(browsers): fix failing tests in IE11
...
Closes #3388
2015-08-04 22:45:46 +02:00
Pascal Precht
39ad50657e
refactor(di/tests): removes unecessary for-loop
...
Closes #3268
2015-08-04 20:14:04 +00:00
Martin Probst
861be30021
feat: export a proper promise type.
...
Promise used to be typed as any, giving incorrect results. This change
fixes places that were incorrectly typed and re-exports the actual
Promise type from es6-promise.
It also fixes a series of compilation errors discovered/triggered by
this change.
2015-08-04 19:56:02 +00:00
Tim Blasi
c58b0ff787
refactor(change_detect): Share more codegen logic
...
Move more logic in our codegen into a shared util which is called by the
Jit & Prege change detector code.
2015-08-04 18:55:07 +00:00
vsavkin
392de4af67
feat(pipes): replaces iterable and key value diffing pipes with services
...
BREAKING CHANGE:
Directives that previously injected Pipes to get iterableDiff or keyvalueDiff, now should inject IterableDiffers and KeyValueDiffers.
2015-08-04 10:39:55 -07:00
Jeremy Elbourn
c20a5d65d8
fix(compiler): Allow components to use any style of selector. Fixes #1602
2015-08-04 09:34:03 -07:00
Pawel Kozlowski
4422819754
fix(parser): detect empty expression in strings to interpolate
...
Fixes #3412
Closes #3451
2015-08-04 08:44:14 +02:00
Pawel Kozlowski
6eaa09ac20
refactor(injector): remove unused consts
...
Closes #3454
2015-08-04 08:40:27 +02:00
mgechev
c0adae69ac
docs(Router): router config
...
Closes #2853
2015-08-04 02:03:26 +00:00
gdi2290
cfedc77ce1
test(XHRConnection): normalize responseText and response
...
normalize xhr.responseText and xhr.response
- [x] Tests
Closes #2882
2015-08-04 00:39:11 +00:00
gdi2290
96eefdfebc
fix(XHRConnection): use xhr status code
...
closes #2841
- [x] Tests
2015-08-04 00:39:11 +00:00
Matias Niemelä
7bf7ec6d9c
fix(router): ensure navigation via back button works
...
The router will now navigate and respect the current address value
accordingly whenever a popState event is handled.
Closes #2201
2015-08-03 22:24:57 +00:00
Matias Niemelä
60f38eab78
feat(router): add `back()` support to `MockLocationStrategy`
2015-08-03 22:24:57 +00:00
Naomi Black
209aefee57
docs(fix-docgen): Fix docgen issues with some recent updates to core
2015-08-03 14:27:02 -07:00
Ted Sander
be79942ebd
feat(transformers): add more information to factory debug reflection
...
Add the symbol information to debug_reflection_capabilities when asking
for a factory to make finding the type easier in large codebases.
2015-08-03 13:36:13 -07:00
Dima Kuzmich
1beaf81e98
docs(View): correct templateUrl and template definition
...
Fixes #3444
Closes #3447
2015-08-03 14:20:35 +02:00
Marc Laval
12e4c738c9
fix(collection): MapIterator.next() is not supported (Safari)
...
Fixes #3015
Closes #3389
2015-08-03 12:18:21 +02:00
Marc Laval
8822460858
chore(browsers): fix failing tests in Firefox
...
Closes #3386
2015-08-03 12:17:44 +02:00
Naomi Black
94690ec5b0
docs(link): Fix the link to an enum for ViewEncapsulation
2015-08-02 22:29:39 -07:00
Misko Hevery
77875a270d
feat: implement web-tracing-framework support
...
This includes implementation and minimal instrumentation
Closes #2610
2015-07-31 23:04:05 +00:00
Misko Hevery
39b0286d6b
fix: remove unused imports
2015-07-31 20:40:33 +00:00
Misko Hevery
dad9338c82
docs(type): Export Type so that we can link to it in our docs.
...
Closes #3345
2015-07-31 20:40:33 +00:00
vsavkin
3437d56904
feat(core): made directives shadow native element properties
...
BREAKING CHANGE
Previously, if an element had a property, Angular would update that property even if there was a directive placed on the same element with the same property. Now, the directive would have to explicitly update the native elmement by either using hostProperties or the renderer.
2015-07-31 20:29:57 +00:00
Alex Eagle
3c58878b19
chore(build): Upgrade to TypeScript@1.5.3
...
This change also makes us compliant with 1.6.0-dev compiler,
so we can do some experiments with apps that use 1.6 features
and compile against Angular.
We should probably add a travis build for 1.6 so we stay compatible
with both versions.
2015-07-31 20:01:27 +00:00
Jason Teplitz
c5cb7009ca
feat(WebWorkers): Add WebWorker Todo Example. Add support for more DOM events.
...
Fixed breakage caused by previous DI commit in WebWorker Todo example
2015-07-31 19:48:18 +00:00
vsavkin
adc27398fd
perf(change_detection): do not generate onAllChangesDone when not needed
2015-07-31 19:23:00 +00:00
Tobias Bosch
dd06a871b7
fix(render): allow to configure when templates are serialized to strings
...
Introduces the injectable `TemplateCloner` that can be configured via the new token `MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE_TOKEN`.
Also replaces `document.adoptNode` with `document.importNode` as otherwise
custom elements are not triggered in chrome 43.
Closes #3418
Closes #3433
2015-07-31 12:04:32 -07:00
Tobias Bosch
014b6cb397
Revert "feat(WebWorkers): Add WebWorker Todo Example. Add support for more DOM events."
...
This reverts commit d44827a4c5
.
This broke master due to a race condition in our presubmit queue.
2015-07-31 11:40:15 -07:00
Jason Teplitz
d44827a4c5
feat(WebWorkers): Add WebWorker Todo Example. Add support for more DOM events.
2015-07-31 18:33:12 +00:00
vsavkin
3cda7128d0
cleanup(di): renamed viewInjector and hostInjector
...
BREAKING CHANGE
Replace viewInjector with viewBindings
Replace hostInjector with bindings
2015-07-31 09:49:51 -07:00
Pawel Kozlowski
70bc485755
fix(browser_adapter): fix clearNodes() in IE
...
Fixes #3295
Closes #3355
2015-07-31 14:56:31 +02:00
Pawel Kozlowski
0a40024995
test(integration): minor tests cleanup
...
Closes #3329
2015-07-31 10:52:42 +02:00
vsavkin
985627bd65
cleanup(DI): clean up visibility decorators
...
BREAKING CHANGE:
Replace @Ancestor() with @Host() @SkipSelf()
Replace @Unbounded() wwith @SkipSelf()
Replace @Ancestor({self:true}) with @Host()
Replace @Unbounded({self:true}) with nothing
Replace new AncestorMetadata() with [new HostMetadata(), new SkipSelfMetadata()]
Replace new UnboundedMetadata() with new SkipSelfMetadata()
Replace new Ancestor({self:true}) with new HostMetadata()
2015-07-31 02:30:26 +00:00
vsavkin
a9ec6b9064
docs(di): added a doc describing advanced di topis
2015-07-31 01:57:17 +00:00
vsavkin
f5864afdbb
docs(di): updated di docs
2015-07-31 01:57:17 +00:00
Hank Duan
7b94bbf3e4
feat(testability): Expose function getAllAngularTestabilities
2015-07-31 01:23:55 +00:00
vsavkin
71ea19902a
perf(change_detection): removed the currentProto property
2015-07-31 00:31:11 +00:00
Pawel Kozlowski
2768158eaf
tests(ProtoViewBuilder): host properties binding to unknown props
...
When binding a host property, we shouldn't try to bind to any
directive properties that might exist on a host element
Closes #3383
2015-07-30 16:16:35 -07:00
Misko Hevery
d4ded1a60d
fix(docs): add ViewDefinition, DirectiveMetadata to public API
...
Closes #3346
2015-07-30 22:02:30 +00:00
Jeff Cross
4e76cac5b7
fix(core): export LifeCycle at top-level modules
...
LifeCycle can now be imported via angular2/angular2 or
angular2/core, so that end users can inject it without
having to use the full source path.
Closes #3395
2015-07-30 21:52:29 +00:00
Tobias Bosch
0dbdd5cd3c
refactor(render): don’t store DOM nodes but store strings for big ProtoViews.
...
Also inserts comment nodes before/after projected nodes so that text nodes don’t get merged when we serialize/deserialize them.
Closes #3356
First part of #3364
2015-07-30 14:11:13 -07:00
yjbanov
4893002408
chore(transfomer): code style in rewriter
2015-07-30 12:06:53 -07:00
Yegor Jbanov
29095766e6
fix(bootstrap): fix expressions containing bootstrap ( fixes #3309 )
2015-07-30 12:06:53 -07:00
Naomi Black
5c21af95c7
chore(docs): fix bad link syntax for ViewEncapsulation enums
2015-07-30 10:55:13 -07:00
Tim Blasi
68a581a04c
fix(dart/transform): Remove malfunctioning zone error handler
...
Remove `onError` zone callback which is consuming exceptions thrown by
the `Transformer`s and can cause `pub` to become unresponsive.
Closes #3368
2015-07-30 00:07:19 +00:00
Jason Teplitz
7b834e02ec
feat(WebWorkers) Add DOM event support
...
closes #3046
2015-07-29 23:34:43 +00:00
Rado Kirov
34acef58e7
fix(query): view query should not be updated when subviews are attached.
2015-07-29 22:33:15 +00:00
vsavkin
c1ee943533
perf(change_detection): do not check intermediate results
2015-07-29 21:58:29 +00:00
Jeremy Elbourn
f7d7789915
fix(decorators): stop directives inheriting parent class decorators.
...
Fixes #2291
2015-07-29 21:23:31 +00:00
Tim Blasi
9c19eb906b
refactor(change_detect): Move (de)hydrate methods into superclass
...
Move the implementation of `(de)hydrate`, `hydrated`, and
`detectChangesInRecords` into `AbstractChangeDetector`.
Add comments clarifying the contract between `AbstractChangeDetector`
and its subclasses.
Closes #3245
2015-07-29 13:12:53 -07:00
yjbanov
73b7d99dc4
fix(style_url_resolver): fix data: url resolution
2015-07-29 11:24:17 -07:00
Tim Blasi
192cf9ddf5
refactor(change_detect): Move common fields to AbstractChangeDetector
...
Move fields common to Dynamic, Jit, and Pregen change detectors into the
`AbstractChangeDetector` superclass to save on codegen size and reduce
code duplication.
Update to #3248 , closes #3243
2015-07-29 10:46:49 -07:00
Pawel Kozlowski
d894aa9101
feat(compiler): introduce schema for elements
...
Closes #3353
2015-07-29 19:40:46 +02:00