c7e48350d3
chore: kill ListWrapper.create() and .push().
...
These wrappers are not natively understood by
ts2dart. Removing them will improve Dart2JS
compilation due to fewer megamorphic calls to List
functions.
It also makes Angular code more succinct and
improves type safety in Angular due to better type
inference of the Array component type.
This change exposed several bugs in Angular.
2015-06-17 16:21:55 -07:00
f1541e65b3
fix(forms): fixed the handling of the select element
2015-06-15 13:16:41 -07:00
f3d741854a
fix: add types for ts2dart's façade handling.
...
... in many, many places.
2015-06-12 15:41:08 -07:00
38e5c3f918
style: format the code with the updated clang
2015-06-12 19:07:13 +02:00
4fe919335c
refactor(forms): made directive names consistent
2015-06-12 09:45:55 -07:00
a858f6ac42
fix(forms): getError does not work without path
2015-06-12 09:45:55 -07:00
f3b49378e4
feat(Directive): Have a single Directive.host which mimics HTML
...
fixes #2268
BREAKING CHANGE:
Before
@Directive({
hostListeners: {'event': 'statement'},
hostProperties: {'expression': 'hostProp'},
hostAttributes: {'attr': 'value'},
hostActions: {'action': 'statement'}
})
After
@Directive({
host: {
'(event)': 'statement',
'[hostProp]': 'expression' // k & v swapped
'attr': 'value',
'@action': 'statement'
}
})
2015-06-11 13:11:09 -07:00
73bce40287
feat(forms): export validator directives as part of formDirectives
2015-06-09 11:51:14 -07:00
5fc23caef7
feat(forms): changed forms to capture submit events and fires synthetic ng-submit events
2015-06-09 11:51:13 -07:00
1a4d23742b
feat(forms): added hasError and getError methods to all controls
2015-06-09 11:51:08 -07:00
309ef0f354
refactor(test): remove explicit calls to flushMicrotasks()
...
flushMicrotasks() is now called at after the fakeAsync callback returns,
see https://github.com/angular/angular/pull/2290
2015-06-08 20:30:49 +02:00
f999d5a156
chore: move to clang-format 1.0.17.
...
clang-format 1.0.17 substantially improves formatting for fat arrow functions
and array literal detection. It also fixes a number of minor formatting issues.
2015-06-03 15:27:27 -07:00
3baf815d76
feat(forms): added support for status classes
2015-06-03 14:43:46 -07:00
96cadcc29e
refactor(forms): handle dirty/pristine explicitly
2015-06-03 14:43:46 -07:00
ec3a78289f
feat(forms): added touched and untouched to Control
2015-06-02 17:32:41 -07:00
f543834be9
feat(forms): renamed control, control-group into ng-control and ng-control-group
2015-06-02 16:24:08 -07:00
6bef1c4169
feat(forms): changed the selector of TemplatdrivenFormDirective to match <form>
2015-06-02 16:24:08 -07:00
652ed0cf6d
feat(form): implemented an imperative way of updating the view by updating the value of a control
2015-06-02 16:24:07 -07:00
559f54e92b
feat(forms): added ng-model
2015-06-02 16:24:07 -07:00
a9d6fd9afa
feat(forms): implemented template-driven forms
2015-05-30 11:56:00 -07:00
3525c9c074
chore(forms): moved tests/forms to typescript
2015-05-22 14:44:57 -07:00
30c3e5a84e
fix(forms): changed forms to create only one value accessor instead of always creating DefaultValueAccessor
2015-05-21 17:31:25 -07:00
00c3693daa
feat(forms): migrated forms to typescript
2015-05-21 13:55:15 -07:00
11e4385173
feat(forms): improved error messages
...
Closes #1839
2015-05-18 14:34:36 -07:00
457c15cd6c
feat(decorators): adds decorator versions of DI annotations.
...
In 'angular2/di' the symbol:
- Inject is a decorator
- InjectAnnotation is an annotation
Internally one an get a hold of annotations without *Annotations appened
(to make ts2dart work without workarounds) by importing from
'angular2/src/di/annotations_impl' instead of 'angular2/di'. This is
needed only for users that transpile through TS and through ts2dart.
2015-05-04 13:35:09 -07:00
f75a50c1dd
refactor(compiler): rename decorator directives into directive
...
BREAKING CHANGE:
Previously, `Directive` was the abstract base class of several directives.
Now, `Directive` is the former `Decorator`, and `Component` inherits from it.
2015-04-30 13:38:40 -07:00
fb67e37339
feat(decorators): adds decorators to be used by TS and Babel transpiled apps.
2015-04-29 15:13:25 -07:00
8ccafb0524
feat(view): reimplemented property setters using change detection
2015-04-23 11:55:27 -07:00
22c6c09daf
chore(build): run event tests in Node
...
Closes #1476
2015-04-21 16:21:39 -07:00
bf7933714a
chore(rename): rename View and Template concepts for #1244
2015-04-10 12:00:37 -07:00
50098767fc
refactor(render): use render layer fully
...
Introduces angular2/src/core/compiler/ViewFactory which
extracts ProtoView.instantiate and replaces ViewPool.
Note: This is a work in progress commit to unblock other commits.
There will be follow ups to add unit tests, remove TODOs, …
2015-04-08 20:51:31 -07:00
52c55d0ee8
test: convert to using TestBed
2015-04-06 10:30:16 +02:00
1d4d18d9db
refactor(render): user render compiler
2015-04-03 23:41:00 -07:00
c1aa65239e
refactor(render): move services to render folder
...
property_setter_factory
selector
style_inliner
style_url_resolver
shadow_css
2015-04-02 14:40:49 -07:00
4f56628566
refactor(render): move services to right location
...
core/compiler/events -> render/dom/events
core/compiler/url_resolver -> services/url_resolver
core/compiler/xhr/* -> services/*
2015-04-02 10:35:27 -07:00
9d21a6f40d
chore(package.json): upgrade traceur to v0.0.87
...
Fix in source-map test to follow through the sourcemap chain.
2015-03-26 18:37:03 -07:00
878fce6482
fix(ts): ts doesn't like ";;"
2015-03-26 17:32:48 +01:00
b02bd65871
feat(forms): made forms works with single controls
2015-03-26 07:48:17 -07:00
ff84506bd5
feat(forms): added support for arrays of controls
2015-03-26 07:43:25 -07:00
9a0a2e319c
chore(ts2dart) remove extra semi
...
This breaks our ts2dart transpilation.
2015-03-25 17:06:47 -07:00
19c1773133
feat(forms): added an observable of value changes to Control
2015-03-24 13:45:47 -07:00
47c1a0f381
feat(forms): added value accessor for input=text
2015-03-23 08:53:27 -07:00
514529b5d9
refactor(formed): changed forms to use event and property setters instead of NgElement
2015-03-23 08:52:54 -07:00
a12dc7d75a
refactor(forms): wrapped all validators into the Validator class
2015-03-23 08:50:56 -07:00
2ff2ce3c6c
refactor(test_lib): remove IS_NODEJS
...
Closes #1015
2015-03-20 15:50:05 +01:00
8a10edec01
feat(forms): added pristine and dirty
2015-03-19 14:36:21 -07:00
906fba4fab
fixed imports
2015-03-19 10:52:16 -07:00
d220b6a2a4
test(forms): added a test checking support for select
2015-03-19 10:19:14 -07:00
f42e6337b7
feat(forms): added support for textarea
2015-03-19 10:19:13 -07:00
a16954d3a5
refactor(view): separate context and locals
2015-03-17 14:25:57 -07:00