vsavkin
559f54e92b
feat(forms): added ng-model
2015-06-02 16:24:07 -07:00
Jacob MacDonald
17e1d7f117
fix(dartdocs): Hide duplicate exports from guinness.
...
Duplicate exports were breaking dartdoc builds.
Closes https://github.com/angular/angular/issues/2072 .
2015-06-02 16:01:46 -07:00
Hank Duan
5fa54a92bc
chore(benchpress): add ff extension test to ci
...
Closes #2229
2015-06-02 15:36:02 -07:00
Tobias Bosch
ba7956f521
fix(render): only look for content tags in views that might have them.
...
Largetable benchmark with `interpolationAttr` and 200 rows / 20 columns:
Time for destroy/create pair dropped from about 1260ms to about 150ms.
Related to #2298 , but does not really fix it as we are still slow
if people are using `<content>`.
Closes #2297
2015-06-02 15:31:07 -07:00
Naomi Black
c2fa4b7191
docs(chore): missing reformats to make clang-format 1.0.15
2015-06-02 15:30:04 -07:00
Naomi Black
d32f58926d
docs(ng-if): fix some missed occurrences of if, for, switch in docs
2015-06-02 15:30:04 -07:00
Naomi Black
6a0fe93ba9
chore(docs): fix another link broken by clang-format
2015-06-02 15:30:03 -07:00
Naomi Black
dc060e8b64
docs(clang): format updates
2015-06-02 15:30:03 -07:00
Naomi Black
b746e0c9f0
docs(docgen): tell dgeni to use ts files and fix some bad links
2015-06-02 15:30:03 -07:00
Ian Riley
5035a42287
refactor(examples/e2e_test): Ts'ifying examples/e2_test
...
Translate AtScript in examples/e2e_test to TypeScript.
Closes #2294
2015-06-02 14:14:46 -07:00
Ian Riley
1d24e2cf23
fix(Global && src/facade && Protractor): Allows List to be imported.
...
Allows the List type to be imported from 'angular2/src/facade/collection'
2015-06-02 13:11:31 -07:00
Ian Riley
9e36539052
fix(src/reflection && src/test_lib): Fixes bugs that caused benchmarks to fail.
...
Adjusts src/test_lib files to adhere to common TS module practices. Fixes bug with all files that causes benchmarks to fail.
2015-06-02 13:11:30 -07:00
Ian Riley
0602f68ae3
refactor (angular2/test_lib): ts'ifying last of test_lib
...
Translates last .es6 files in angular2/src/test_lib to TypeScript.
2015-06-02 13:11:30 -07:00
Ian Riley
2b60d1bae1
refactor (benchmarks/): Ts'ifying benchmarks/
...
Translating AtScript in benchmarks/ to TypeScript.
2015-06-02 13:11:30 -07:00
Victor Berchet
0b43e3cf32
refactor(lang_spec): Add missing ;s and clang-format
2015-06-02 21:09:38 +02:00
Jeff Cross
ba07f39347
refactor(router): convert to typescript
...
Fixes #2001
2015-06-02 11:06:44 -07:00
Marc Laval
4c8e11a577
fix(ShadowCss): keyframes tests failing in Safari
...
Closes #2283
2015-06-02 19:23:06 +02:00
Victor Berchet
3d6c44e2a7
test(KeyEvents): workaround a bug in chrome driver
...
closes #2253
see https://code.google.com/p/chromedriver/issues/detail?id=553
2015-06-02 14:37:57 +02:00
Victor Berchet
c60091b949
refactor(Compiler): improve the error message on component load error
...
by adding the fetched url.
relates to #1460
2015-06-02 12:59:50 +02:00
Victor Berchet
8811337622
refactor(ElementInjector): add interfaces for strategies
2015-06-02 10:09:39 +02:00
Victor Berchet
921fb9f2ce
refactor(Injector): use TS iodioms
2015-06-02 09:53:11 +02:00
Victor Berchet
e93b5a1d5b
refactor(Injector): add an interface for strategies
2015-06-02 09:53:11 +02:00
gdi2290
db7a1f19ba
feat(render/dom_renderer): DocumentToken use OpaqueToken
...
BREAKING CHANGE:
No longer a `const` string. Now a const OpaqueToken
2015-06-01 16:24:36 -07:00
gdi2290
ef27919f7f
feat(core/compiler): AppViewPool use OpaqueToken
...
BREAKING CHANGE:
No longer a `const` string. Now a const OpaqueToken
2015-06-01 16:24:36 -07:00
gdi2290
c571b2693e
feat(OpaqueToken): now a const constructor
...
BREAKING CHANGE:
now a `const` constructor
2015-06-01 16:24:36 -07:00
PatrickJS
93f464a145
feat(change_detection.ts): export PipeFactory
...
Closes #2245
2015-06-01 16:14:02 -07:00
Hank Duan
ad26bed0ed
chore(shrinkwrap): add shrinkwrap for firefox-profile/jpm
...
and update package.json for benchpress
closes #2264
2015-06-01 16:04:38 -07:00
Tobias Bosch
62a95823e0
fix(selector): support multiple `:not` clauses
...
Fixes #2243
2015-06-01 14:24:19 -07:00
Tim Blasi
22f5925202
fix(facade): Make PromiseWrapper#all semantics equivalent
...
The semantics between ES6 `Promise#all` and Dart's `Future#wait` are
different for values that are not `Promise`/`Future`s. In ES6,
non-`Promise` values are immediately completed to their current value.
In Dart, non-`Future` values cause an error.
Updated Dart's `PromiseWrapper#all` implementation to conform to the ES6
spec.
2015-06-01 07:26:46 -07:00
vsavkin
a9d6fd9afa
feat(forms): implemented template-driven forms
2015-05-30 11:56:00 -07:00
vsavkin
5c53cf6486
fix(fake_async): fixed fakeAsync to throw instead of crashing on cjs
2015-05-30 11:55:17 -07:00
vsavkin
74882c6c38
feat(test): added not.toBeNull
2015-05-30 11:54:10 -07:00
Jeremy Elbourn
c8947d77bf
chore(material): move dialog to TypeScript.
2015-05-29 17:19:44 -07:00
uber5001
6404dd8293
refactor (angular2/src/dom): tsifying angular2/src/dom
...
translates parse5_adapter.cjs to typescript
Closes #2230
2015-05-29 17:01:05 -07:00
vsavkin
f19970a481
feat(transformers): added support for lifecycle events
2015-05-29 16:40:34 -07:00
vsavkin
d523613329
test(di): added a test verifying hierarchical injection
2015-05-29 15:52:46 -07:00
Tim Blasi
000a8e25a2
fix(dart/transform): Fix DirectiveMetadata read tests
2015-05-29 14:56:42 -07:00
Tim Blasi
8a3b0b366f
feat(dart/transform): Generate ChangeDetector classes
...
Use the `ProtoViewDto` created by the render `Compiler` to create a
`ChangeDetectorDefinition`.
From there, generate a subclass of `AbstractChangeDetector` for each
`ChangeDetectorDefinition`.
Run some basic unit tests for the dynamic and JIT change detectors on
pre-generated change detectors.
2015-05-29 14:48:53 -07:00
Jeff Cross
383f0a1f30
fix(benchpress): add index to root of module
...
This is necessary when using require('benchpress') in node.
2015-05-29 14:38:29 -07:00
Jeff Cross
e323c07ab9
refactor(benchpress): convert src and test to typescript
...
Fixes #2007
2015-05-29 14:02:58 -07:00
Tobias Bosch
f9908cd436
feat(test): add element probe
...
Usage: bootstrap the app with the special binding
`ELEMENT_PROBE_CONFIG` from `angular2/debug`.
This will provide a global method `ngProbe(element)` that
will expose a `DebugElement` with directive instances, ... on it.
During tests that use Angular's test injector, the probe is
enabled by default. The `DebugElement ` can be retrieved via the
function `inspectDomElement` of `angular2/debug`. Note
that the `TestComponentBuilder` already returns `DebugElement `s.
Closes #1992
2015-05-29 12:44:21 -07:00
Tobias Bosch
24bc4b66d0
fix(render): don’t store a document fragment as bound element
...
When a template contains bound text nodes as root nodes,
we used to store the document fragment that we got from
cloning `template.content`. However, this fragment will be
empty as soon as the view gets attached. Now we store
`null` instead of the document fragment in this case.
Also groups the 3 cases in `_createView` so they are easier to
understand.
2015-05-29 11:33:23 -07:00
Tobias Bosch
2351896cc0
fix(dom): allow to correctly clone document fragments
2015-05-29 11:33:23 -07:00
Tobias Bosch
307011a96c
fix(dom): `querySelectorAll` should only query child nodes
2015-05-29 11:33:22 -07:00
Tobias Bosch
6f3368ef16
feat(dom): add `setData()` method.
2015-05-29 11:33:22 -07:00
Tobias Bosch
cdf791f0c5
feat(facade): add read/write access to global variables
2015-05-29 11:33:22 -07:00
Tobias Bosch
75578f41e7
feat(view): add `AppViewListener` interface
...
Basic functionality how element probe is hooked into
the system.
2015-05-29 11:33:22 -07:00
Tim Blasi
ffb219fb91
style(dart): Format Dart source with dart_style 0.1.8
2015-05-29 10:42:47 -07:00
Sekib Omazic
eb2784eb81
refactor(core.js): export NgZone
...
Export NgZone so it can be used in applications where large data streams should be processed outside of Angular.
2015-05-29 17:58:32 +02:00
gdi2290
28ee0612cb
feat(router.js): export router injectables
...
Exporting: `RootRouter`, `RouteRegistry`, `BrowserLocation`,
`Location`, and `Pipeline`.
2015-05-29 17:56:00 +02:00
elimach
a80921b45d
fix(binding): unbalanced curly brackets in documentation
2015-05-29 17:54:51 +02:00
Victor Berchet
0db88f34b8
refactor(annotations): stricter types
2015-05-29 11:44:45 +02:00
Victor Berchet
35f0ee510a
refactor(transformer): updates in properties syntax
2015-05-29 11:44:44 +02:00
Victor Berchet
d7df853bde
feat(Directive): convert properties to an array
...
fixes #2013
BREAKING CHANGE:
Before
@Directive(properties: {
'sameName': 'sameName',
'directiveProp': 'elProp | pipe'
})
After
@Directive(properties: [
'sameName',
'directiveProp: elProp | pipe'
])
2015-05-29 11:44:43 +02:00
Victor Berchet
0387221da8
fix(ast): fix the size of a list in _evalListCache
2015-05-29 08:07:43 +02:00
vsavkin
c39c8ebcd0
feat(change_detection): added onInit and onCheck hooks
2015-05-28 16:46:22 -07:00
Tim Blasi
5d2af54730
feat(dart/transform): Improve constant evaluation
...
Use `package:analyzer`'s `ConstantEvaluator` to read from the AST.
This cleanly builds values for us from adjacent strings, interpolations,
etc.
2015-05-28 15:18:22 -07:00
Victor Berchet
a9be2ebf1b
feat: add support for the safe navigation (aka Elvis) operator
...
fixes #791
2015-05-28 23:03:30 +02:00
Victor Berchet
ec2d8cc2c8
feat(binding): throw on binding to a blank alias
...
fixes #2068
2015-05-28 22:37:29 +02:00
Jeff Cross
01fb8e6635
fix: fix clang errors
2015-05-28 11:08:26 -07:00
Jeff Cross
9d90128463
refactor(ChangeDetection): convert change detection tests to typescript
2015-05-28 10:01:30 -07:00
vsavkin
34cfc9f474
feat(di): added optional self parameter to Parent, Ancestor, and Unbounded
2015-05-28 09:53:06 -07:00
Ian Riley
ebe1e73b1a
refactor (test/test_lib): Ts'ifying test/test_lib
...
Translates AtScript files in test/test_lib to TypeScript.
Closes #2183
2015-05-28 09:50:59 -07:00
Ian Riley
8ce0a67c81
refactor (test/services): Ts'ifying test/services
...
Translates AtScript files in test/services to TypeScript
Closes #2193
2015-05-28 09:48:38 -07:00
Tim Blasi
c065fb1422
feat(dart/transform): Remove unnecessary .ng_deps.dart files
...
Removes `.ng_deps.dart` files which
1. Do not register any `@Injectable` classes
2. Do not call `initReflector` on any other `.ng_deps.dart` files.
Closes #1929
2015-05-28 07:51:10 -07:00
Tim Blasi
cda35101df
fix(facade): Fix bug in TS indexOf
...
startIndex defaults to -1, which in Chrome results in returning -1
regardless of the other parameters.
Added regression tests.
2015-05-28 06:56:24 -07:00
Julie Ralph
c32dbad747
feat(tests): add TestComponentBuilder
...
Adds a TestComponentBuilder for use in component level tests.
For usage examples, see test_component_builder_spec
Closes #1812
2015-05-27 17:15:13 -07:00
vsavkin
30b6542fc8
feat(core): added support for detecting lifecycle events based on interfaces
2015-05-27 16:23:42 -07:00
vsavkin
2b6a653050
feat(core): added missing interfaces for onDestroy and onAllChangesDone lifecycle events
2015-05-27 15:50:08 -07:00
vsavkin
34d75e8918
feat(reflector): added a method to get type's interfaces
2015-05-27 15:50:08 -07:00
Martin Probst
2c25055828
chore: reformat the code base using the clang-format 1.0.15.
2015-05-27 15:28:22 -07:00
Tim Blasi
a2770c8a52
refactor(change_detect): Flatten Js change detector template
...
Update the `ChangeDetectionJITGenerator` for clarity and similarity with
the upcoming Dart generated `ChangeDetector` classes.
2015-05-27 11:50:25 -07:00
Tobias Bosch
4a3fd5e855
fix(di): allow `@Inject(…)` to work in dart2js and dynamic reflection
...
Note: We can’t write a unit test for this as our unit tests
are running in Dartium, where the error does not occur.
However, we previously had a failure in our e2e tests
in `hello_world/index_dynamic.html`
when removing the TODOs in `application.ts`.
Closes #2185
2015-05-27 10:33:30 -07:00
Tobias Bosch
608017776e
fix(package.json): add `reflect-metadata` to package.json
...
Fixes #2170
2015-05-27 10:32:38 -07:00
Tobias Bosch
0c7f05f56a
fix(injectable): add missing @Injectables annotations
...
Closes #2173
2015-05-27 10:31:20 -07:00
Marc Laval
c6335c128e
feat(test_lib): add method to compare stringified DOM element
...
Closes #2106
2015-05-27 16:19:39 +02:00
Marc Laval
fb42d5908e
fix(test): solve CSS discrepancies across browsers
...
Closes #2177
2015-05-27 14:54:00 +02:00
Ian Riley
8609543ad0
refactor (test/facade): Ts'ify test/facade
...
Translate AtScript in test/facade to TypeScript
2015-05-27 08:10:11 +02:00
cexbrayat
f83f1ee0ce
fix(example): unused event
2015-05-27 08:09:55 +02:00
gdi2290
1db6870a81
docs(ng_for.ts): For => NgFor
2015-05-27 08:09:42 +02:00
gdi2290
c19c69f336
refactor(forms): remove self closing wrap <label>s
...
html5 doesn't have self closing tags
breaks `stringifyElement` from
https://github.com/angular/angular/pull/2106
also an error with submit form and wrap with <label>s
2015-05-27 08:09:26 +02:00
Hank Duan
b390f441a1
feat(benchpress): Add extension for ff metrics reporting
...
Closes #1976
2015-05-26 17:30:41 -07:00
Tobias Bosch
79f564be46
refactor(core): ts’ify tests
2015-05-26 17:01:31 -07:00
Tobias Bosch
23d59df81a
feat(test_lib): add `containsRegex`
2015-05-26 17:01:31 -07:00
Ian Riley
ef3e12e803
refactor (test/directives): ts'ify test/directives
...
Translate all of the AtScript code in .../test/directives to TypeScript.
Closes #2167
2015-05-26 16:51:38 -07:00
Kevin Moore
5fe88d63ef
chore: support the latest release of Dart logging package
2015-05-26 13:51:54 -07:00
Jeremy Elbourn
0f3a8f369a
chore(material): migrate most components to TypeScript.
2015-05-26 13:35:44 -07:00
Victor Berchet
26d5d17ebe
style: fix clang-format glitches
2015-05-26 21:00:44 +02:00
Victor Berchet
bb7ffce7eb
test(ShadowCss): add tests for keyframe rules
2015-05-26 19:42:17 +02:00
Victor Berchet
551586ced0
feat(RegExpWrapper): implement a test method
2015-05-26 19:42:17 +02:00
Tobias Bosch
1dc8ba6920
refactor(render): ts’ify tests
2015-05-26 09:38:26 -07:00
Tobias Bosch
d773b6a00a
fixed(spy): support `SpyObject` in Typescript as well
...
- allow `@IMPLEMENTS` as a decorator
- implement empty `noSuchMethod`
2015-05-26 09:25:16 -07:00
Naomi Black
f6cd26b0a6
docs(docgen): fixed a typo that was breaking dgeni
2015-05-22 21:47:34 -07:00
Naomi Black
5a52c0b71d
docs(di): fix missing export for dgeni docgen
2015-05-22 21:47:34 -07:00
gdi2290
662da0d728
feat(render): re-export render and export `DirectiveResolver`
...
Closes #2026
2015-05-22 17:38:00 -07:00
vsavkin
df59e969cf
chore(di): moved tests to typescript
2015-05-22 17:32:21 -07:00
vsavkin
d27e5512c0
chore(reflection): tsfy tests
2015-05-22 17:03:40 -07:00
yjbanov
d48fae3566
fix(core): resurrect OnChange interface
2015-05-22 16:48:00 -07:00
vsavkin
3525c9c074
chore(forms): moved tests/forms to typescript
2015-05-22 14:44:57 -07:00
Martin Probst
15f1eb28a2
fix(deps): Update clang-format to 1.0.14.
2015-05-22 09:39:15 -07:00