vsavkin
906fba4fab
fixed imports
2015-03-19 10:52:16 -07:00
vsavkin
d220b6a2a4
test(forms): added a test checking support for select
2015-03-19 10:19:14 -07:00
vsavkin
f42e6337b7
feat(forms): added support for textarea
2015-03-19 10:19:13 -07:00
Misko Hevery
81312e4b3e
docs: annotations
2015-03-19 16:56:52 +00:00
Tim Blasi
08b56e1c53
feat(dart/transform): Add simple ParseTemplates step
...
Generate methods in the ParseTemplates step.
Add a test for inline template method generation.
2015-03-19 08:05:44 -07:00
Tim Blasi
b3fa1fa4fa
feat(dart/transform): Add simple ParseTemplates step
...
Adds a step that parses `inline` Template values to generate getters and
setters.
2015-03-19 07:06:51 -07:00
Tim Blasi
5d502d4093
feat(dart/transform): Implement `Html5LibDomAdapter` methods.
...
Adding support for some additional `DomAdapter` methods necessary to run
`Complier` in the Dart transformer.
2015-03-19 07:06:51 -07:00
Pawel Kozlowski
e0710c4613
fix(PropertyBindingParser): detect bindings using full attribute name
...
Fixes #1001
Closes #1004
2015-03-18 21:52:15 -07:00
Patrice Chalin
376bdf4dc7
fix(bootstrap): report error on bootstrapping non-Component directive
...
Fixes #951 . Test case added to exercise new error reporting. Also added
extra test for when Template is missing.
Closes #961
2015-03-18 21:51:46 -07:00
Pawel Kozlowski
a35cc27781
fix(PropertyBindingParser): properly parse event bindings as actions
...
Fixes #981
Closes #987
2015-03-18 19:09:59 +01:00
Tim Blasi
014a28fef0
fix(examples): Fix type registration in hello_world
...
Fixing `registerType` call for `Content` in index_static.js.
Closes #991
2015-03-17 22:13:07 -07:00
Tim Blasi
153cee1244
feat(di): Modify hello_world to use @Injectable
...
Mark `GreetingService` as available to `Injector`s.
Closes #986
2015-03-17 22:12:47 -07:00
Tim Blasi
57723e1354
feat(di): Add the `@Injectable` annotation to `Compiler`
...
Mark `Compiler` and its dependencies as available to the `Injector`.
2015-03-17 22:12:47 -07:00
Tim Blasi
b656f63430
feat(di): Add the `@Injectable` annotation
...
Add an annotation marking a class as available to `Injector`s.
2015-03-17 22:12:47 -07:00
Marc Laval
a46af9c41c
feat(build): check circular depencies in Node.js
...
Closes #980
2015-03-17 22:12:26 -07:00
Tim Blasi
d10df7de44
style(dart/transform): Rename .ngDeps.dart => .ng_deps.dart
...
Update to conform with file naming conventions.
Closes #975
2015-03-17 22:12:08 -07:00
PatrickJS
91398c3425
docs(application.js): ensure bootstrap promise,
...
so people using something like systemjs won't break the promise chain and at the same time shows that it's a promise
```es6
Promise.all({
app1: System.import('app1').then(module => module.main()),
app2: System.import('app2').then(module => module.main()),
app3: System.import('app3').then(module => module.main())
})
.then(function(injectors) {
console.log('dem injectors', injectors);
});
```
Closes #967
2015-03-17 22:11:26 -07:00
Pawel Kozlowski
59a1f836a2
fix: allow creation of var with camelCased names
...
Closes #957
2015-03-17 21:39:26 -07:00
Victor Berchet
c6893aceed
perf(DirectiveDependency): iterate only once over Dependency properties
...
Closes #918
2015-03-17 21:24:02 -07:00
Nick Van Dyck
6fe294ff2b
(docs) decorator events typo?
...
Ok I'm not sure (trying to understand angular2) but according to what i can see. Shouldn't the decorator event property be events. Please correct me if I'm wrong :p
2015-03-17 17:10:47 -07:00
Marc Laval
46b03a524e
feat(test): more tests in Node.js
2015-03-17 16:58:58 -07:00
vsavkin
99f2d7faf6
removed circular deps so tests run on node
2015-03-17 16:31:37 -07:00
vsavkin
b92d16c08e
cleanup(change_detection): removed an unused method
2015-03-17 15:23:59 -07:00
vsavkin
2041860a21
feat: added an ability to dynamically load components
2015-03-17 15:23:59 -07:00
vsavkin
7488456d68
feat(element_injector): added PrivateComponentLocation
2015-03-17 15:23:58 -07:00
vsavkin
b69f3043e0
feat(compiler): added the DynamicComponent annotation
2015-03-17 15:23:58 -07:00
Peter Bacon Darwin
85799aa1a5
docs(*): add `@publicModule` tags
...
Initial set of tags to demonstrate the public docs filtering
Closes #988
2015-03-17 14:44:45 -07:00
vsavkin
a16954d3a5
refactor(view): separate context and locals
2015-03-17 14:25:57 -07:00
Yegor Jbanov
70c875ee14
refactor(shadow dom): do not use injectors nor directives
...
This prepares us for the app/render split in the compiler.
2015-03-16 16:58:38 -07:00
Misko Hevery
115ac5f290
docs: directive docs
2015-03-16 02:53:22 +00:00
Jacob MacDonald
a963ae48e5
feat(benchmarks): add polymer js 0.8-preview benchmark
...
Limitations because of preview status (see #960 ):
- does not yet use ShadowDOM
- does not use a builtin conditional like `if`
- uses a temporary bower repository
Closes #943
2015-03-13 20:48:03 -07:00
Tobias Bosch
21a293b017
refactor(bench press): rename metrics and adapt them to the features of the browser
...
* Rename metrics, add `Time` suffix to all so that they are
more consistent
* iOS does not give us `gc` metrics, so they should not be reported
* Rename `scriptMicroAvg` into `microScriptTimeAvg`
* Rename previous `script` metric into `pureScriptTime` metric,
and keep `scriptTime` metric as the overall time, so that we still
have a shared metric across devices independent of the supported
browser features
* `microScriptTimeAvg` is now based on overall `scriptTime`, including
gc and render time.
* Move more shared DI tokens into `common_options` (previously
`sample_options`).
Closes #930
2015-03-13 20:46:37 -07:00
vsavkin
75ecaf02b9
chore: upgrade guinness to remove a workaround in testlib
2015-03-13 18:19:10 -07:00
vsavkin
33bff17f33
refactor(tests): refactor tests to clarify the behavior of onChange
2015-03-13 18:09:31 -07:00
Misko Hevery
956b8c8792
docs: bootstrap method
2015-03-13 21:55:02 +00:00
vsavkin
3273adade5
refactor(view): change view to pass all bindings to proto change detector at once
2015-03-13 14:03:57 -07:00
Peter Bacon Darwin
1adb23d222
docs(TestInjector): reenable jsdoc comment for exported `inject` function
...
This was disabled due to a bug in dgeni. See #949
2015-03-13 20:53:25 +00:00
Pawel Kozlowski
b39d2c0101
fix: properly bind to camelCased properties
...
Fixes #866
Closes #941
2015-03-13 19:50:47 +01:00
David East
afda43dc02
feat(examples): Add TodoMVC sample application.
2015-03-13 19:28:59 +01:00
Marc Laval
e8965656a4
feat(directives/forms): run tests in NodeJS
...
Closes #921
2015-03-13 19:18:15 +01:00
Victor Berchet
7322ed721e
refactor: remove reference to the FIELD class
2015-03-13 18:59:51 +01:00
Victor Berchet
fde7e9e898
doc(TestInjector): fix a build error with dgeni
2015-03-13 18:48:29 +01:00
Marc Laval
8d2ee6bbda
feat(selector): add support for :not
...
Fixes #609
Closes #948
2015-03-13 18:26:10 +01:00
Tim Blasi
5c1c534894
test(dart/transform): Move BindGenerator tests to their own dir.
...
Move existing BindGenerator test to its own directory and to test that
phase specificially, rather than the whole pipeline.
Add another BindGenerator test.
2015-03-13 10:25:11 -07:00
Tim Blasi
4b12c19560
feat(dart/transform): Add a parser for `.ng_deps.dart` files and use.
...
Use the parser in `BindGenerator`
This checkin also removes types from `registerSetters` calls since they
can cause runtime failures (see #886 ). We will resolve this by
generating change detector classes in the future.
2015-03-13 10:24:15 -07:00
Tim Blasi
92b22d24d0
feat(dart/transform): Add a `.ng_deps.dart` file parser.
...
Create a common, reusable `.ng_deps.dart` file parser. All future transformer
phases build on the information in `.ng_deps.dart` files.
2015-03-13 10:24:15 -07:00
Tim Blasi
95c9eca64c
style(dart/transform): Change quote character for consistency.
...
Use ' as a quote character in generated output instead of ".
2015-03-13 10:24:15 -07:00
Victor Berchet
30253592ff
refactor(tests): refactor some tests to use the test injector
2015-03-13 18:20:02 +01:00
Victor Berchet
33b5ba863e
feat(tests): add a test injector
...
fixes #614
Asynchronous test should inject an AsyncTestCompleter:
Before:
it("async test", (done) => {
// ...
done();
});
After:
it("async test", inject([AsyncTestCompleter], (async) => {
// ...
async.done();
}));
Note: inject() is currently a function and the first parameter is the
array of DI tokens to inject as the test function parameters. This
construct is linked to Traceur limitations. The planned syntax is:
it("async test", @Inject (async: AsyncTestCompleter) => {
// ...
async.done();
});
2015-03-13 18:20:02 +01:00
Pawel Kozlowski
5926d2e2f7
refactor: use attributes for directives matching
...
Closes #940
2015-03-13 17:24:14 +01:00
Pawel Kozlowski
d35fdfcd40
refactor: return copy of DOM attributes in Dart
...
This alligns with JS-version behaviour
2015-03-13 17:24:13 +01:00
Rado Kirov
f7963e1ea6
fix(shadowdom): allow conditional content tags.
...
Distribution is triggered on the host element injector after each new
view creation.
2015-03-12 12:06:47 -07:00
Victor Berchet
a82e20889d
feat(Injector): Support binding to null
2015-03-12 19:52:08 +01:00
Victor Berchet
951a808e0e
refactor(PropertySetter): use the global reflector
2015-03-12 19:49:34 +01:00
Marc Laval
c67194a3ef
fix(test_lib): remove getDistributedNodes emulation in NodeJS
2015-03-12 11:16:47 +01:00
Rado Kirov
dd3e6271c2
chore(services): rename services.
...
Closes #711
2015-03-11 18:30:37 -07:00
Tim Blasi
f4e0f51f5a
feat(dart/transform) Register parameter metadata information
...
Adds any metadata attached to a parameter to the "parameters" value
passed in to `registerType`.
For example:
`MyComponent(@Inject(Foo) foo)` generates
`"parameters": const [const [const Inject(Foo)]]`
Also reorganizes the testing code.
Closes #7
2015-03-11 17:21:49 -07:00
Tobias Bosch
e1a1dd07e4
fix(test): add `v8` category to server spec
2015-03-11 16:35:23 -07:00
Rado Kirov
f1593ebca5
feat(shadowdom): turn on ShadowDom Emulated Mode by default.
...
Closes : #526
2015-03-11 12:46:15 -07:00
Marc Laval
1d4ff9bcdc
feat(compiler): parse5 DOM adapter
...
Closes #841
2015-03-11 14:42:54 +01:00
Marc Laval
537f943f57
refactor(compiler): remove direct accesses to DOM
...
Closes #898
2015-03-11 11:58:18 +01:00
Tim Blasi
d0aceef4e0
perf(dart/transform) Restructure transform to independent phases
...
Update summary:
- Removes the need for resolution, gaining transform speed at the cost
of some precision and ability to detect errors
- Generates type registrations in the package alongside their declarations
- Ensures that line numbers do not change in transformed user code
2015-03-10 19:19:02 -07:00
vsavkin
08bd3a4443
feat(forms): add form builder
2015-03-10 18:12:50 -07:00
vsavkin
10fb7bb05f
refactor(forms): make form group responsible for supporting optional controls
2015-03-10 18:12:30 -07:00
Marc Laval
5acde20c7d
refactor(compiler): remove direct accesses to DOM in tests
...
Closes #899
2015-03-10 22:08:27 +01:00
Marc Laval
f1f06018c1
fix(compiler): workaround for circular dependencies in nodejs
...
Closes #897
2015-03-10 21:58:13 +01:00
Brian Ford
e0feeaf973
fix(CompileStep): use namespace to resolve circular dep issue
2015-03-10 11:35:52 -07:00
Victor Berchet
370643539f
refactor(EventHandler): have a single instance of event handlers per ProtoView
2015-03-10 15:26:06 +01:00
Victor Berchet
bfa18ffd9b
feat(Directives): add the ability to declaratively bind events
...
relates to #621
2015-03-10 08:14:24 +01:00
Victor Berchet
86e9dd68a4
refactor(ElementBinderBuilder): refactor pipes support
2015-03-10 07:23:17 +01:00
Pawel Kozlowski
0d1dece7b4
feat: introduce Title service
...
Closes #612
Closes #900
2015-03-09 22:17:28 +01:00
Dylan Johnson
7e93c54603
docs(12_zones.md): Fix typos and inconsistent capitalization
...
Closes #893
2015-03-09 18:58:56 +01:00
Victor Berchet
b349c35678
feat(ElementInjector): implement @PropertySetter
...
relates to #621
2015-03-09 18:28:39 +01:00
Victor Berchet
c3873be295
fix(Compiler): asynchronous error reporting
2015-03-09 16:42:37 +01:00
Tobias Bosch
f9dcfa3ba5
feat(benchpress): add a file reporter
2015-03-06 12:50:05 -08:00
Tobias Bosch
146d731e73
feat(bench press): detect major gcs
2015-03-04 17:34:29 -08:00
Alex Eagle
91426a8efe
fix: remove one more use of for..of
2015-03-04 08:35:41 -08:00
Tobias Bosch
043b8c6d2e
feat(bench press): add microIterations option
2015-03-03 14:41:03 -08:00
Victor Berchet
03793d0714
feat(CssProcessor): add support for CssTransformers
...
Closes #860
2015-03-03 11:24:08 -08:00
Victor Berchet
9982520a23
refactor(Compiler): make shadow DOM stragegy support more flexible
2015-03-03 11:24:08 -08:00
Victor Berchet
bcf4a96a84
refactor(Compiler): simplify the code
...
Closes #862
2015-03-03 11:21:02 -08:00
Tobias Bosch
8adac5332a
fix(benchmarks): prepare publish to pub
2015-03-02 16:34:32 -08:00
Tobias Bosch
81a5ae8f6e
fix(build): report and fail on errors
...
tree benchmark was broken and we didn’t know it…
also changes reporting to not include messages from `console.time()`, …
2015-03-02 16:34:32 -08:00
vsavkin
733915d99b
feat(forms): add support for nested forms
2015-03-02 14:53:03 -08:00
Tobias Bosch
7ddfbf8bea
refactor(tests): move files from `angular2/e2e_test` to `angular2/src/test_lib`
...
The `e2e_test` folder in `angular2` never contained e2e tests but was
used to store utilities for writing e2e/perf tests. A better place for
them is `angular2/src/test_lib`.
Closes #855
2015-03-02 14:38:02 -08:00
vsavkin
ba0a1ec459
feat(di): add support for optional dependencies
2015-03-02 14:38:02 -08:00
Victor Berchet
23786aaa92
feat(DomAdapter): add types
...
Closes #842
2015-03-02 14:38:02 -08:00
Caitlin Potter
749a75812c
fix(browser_adapter): work around WebKit bug with importing template elements
...
Closes #851
Closes #853
2015-03-02 14:38:02 -08:00
Bertrand Laporte
3059104e8d
add compilation error test for dart
...
Closes #812
2015-03-02 14:38:02 -08:00
vsavkin
21f24d19dd
feat(change_detection): implement hydration/dehydration
2015-03-02 13:28:39 -08:00
Tobias Bosch
821d01ab34
refactor(benchpress): export webdriver adapters in benchpress/benchpress
...
Also adds default bindings for protractor.
Also removes sync web driver adapter for Dart as we don’t have tests
for it yet.
2015-03-02 11:31:06 -08:00
Richard Harrington
f30e3e59b5
fix(docs): fix typo in compiler integration_spec.js
...
Closes #834
2015-02-28 12:00:49 +01:00
Yegor Jbanov
cbe7b8c671
chore(refactor): easier to make sense of attr-to-prop map (even if a bit reduntant)
2015-02-27 22:11:08 -08:00
Yegor Jbanov
757eae8ad3
feat(compiler): DOM adapters + html5lib implementation; misc fixes
2015-02-27 16:49:14 -08:00
Alex Eagle
ab42664e76
Don't use the for..of syntax in AtScript.
2015-02-27 15:26:53 -08:00
Tim Blasi
ccb306cce7
docs(di): Fix typos, add some clarification.
...
Or maybe expose my lack of understanding, we'll see!
2015-02-27 14:54:16 -08:00
Tobias Bosch
3b40052dc7
feat(build): enforce mobile layout during e2e tests
...
This is important as we run our benchmarks on
mobile devices as web driver tests fails if buttons
are not visible / overlaid by other content.
2015-02-27 11:11:32 -08:00
Pawel Kozlowski
7e6f536cf5
fix(compiler): properly bind to properties that don't have matching attr name
...
Fixes #619
Closes #783
2015-02-27 16:10:16 +01:00
Tobias Bosch
5cbb174a6d
fix(bench press): Don’t use unicode in console reporter to prevent problems
2015-02-26 13:15:17 -08:00
Victor Berchet
8541cfd26d
feat(ShadowDomStrategy): implemented EmulatedUnscopedShadowDomStrategy
...
- The new strategy do not scope component styles but make them global,
- The former EmulatedShadowStrategy has been renamed to
EmulatedScopedShadowDomStrategy. It does scope the styles.
2015-02-26 20:00:23 +01:00
Victor Berchet
9f181f39e9
fix(StyleUrlResolver): add support for media query in import rules
2015-02-26 20:00:23 +01:00
Victor Berchet
4d8d17ce3d
fix(StyleInliner): add support for url(url) format
2015-02-26 20:00:23 +01:00
Victor Berchet
06f7481141
feat(RegExp): expose match indexes in Dart
2015-02-26 19:32:49 +01:00
Victor Berchet
009e11a6be
fix: Static DI init
2015-02-26 19:31:44 +01:00
Pawel Kozlowski
8d2720775c
chore: re-add dependency on zone.js
...
Closes #811
2015-02-26 19:20:02 +01:00
vsavkin
cf9cb61665
clean(forms): cleanup
2015-02-26 09:35:30 -08:00
vsavkin
f27e538e2c
feat(forms): add optional controls
2015-02-26 09:31:02 -08:00
vsavkin
a73c643322
feat(forms): remove support for declaring forms in html
2015-02-26 09:31:02 -08:00
vsavkin
ded83e589b
feat(forms): add support for validations
2015-02-26 09:31:01 -08:00
Tobias Bosch
65ebff056a
refactor(benchpress): make tests for error cases also work in Dart
...
Also introduces `PromiseWrapper.catchError`.
Could not use `PromiseWrapper.catch` as a name as Dart would not allow
this method name.
2015-02-26 09:24:40 -08:00
Victor Berchet
dd1898c132
fix(compiler): add a missing ;
2015-02-26 15:24:21 +01:00
Victor Berchet
929fc65493
refactor(template loading): add support for base URLs, css rewriting
...
fixes #654
2015-02-26 09:36:04 +01:00
Victor Berchet
26872f60e6
feat(ComponentUrlMapper): retrieve the base URL for components
2015-02-26 09:04:00 +01:00
Victor Berchet
9250cd6a78
fix(ShimShadowCss): preserve attribute on style elements
2015-02-26 09:04:00 +01:00
Victor Berchet
edb797e191
feat(StyleUrlResolver): rewrite url in styles
2015-02-26 09:04:00 +01:00
Victor Berchet
ff406e65dc
feat(UrlResolver): combine a base URL with an URL
2015-02-26 09:04:00 +01:00
Victor Berchet
e0cf1c7ab5
feat(StyleInliner): StyleInliner inlines @import css rules
2015-02-26 09:04:00 +01:00
Victor Berchet
e8bec99aa6
feat(test_lib): support not.toBePromise() for Dart
2015-02-26 09:04:00 +01:00
Victor Berchet
41c61e5bc7
refactor(Completer): rename complete() to resolve()
2015-02-26 08:46:32 +01:00
Rado Kirov
6ad2c18277
feat(events): adds support for bubbling native events (^event).
...
Refactor - move DomEventManager into its own plugin.
2015-02-25 19:08:16 -08:00
Rado Kirov
2f015cc336
fix(view_container): fixes injection on dynamically added views.
...
Closes #777
2015-02-25 18:05:57 -08:00
Alex Eagle
56906db4d5
fix es6 compilation for Element.remove.
...
Use DOM facade to delete an Element since the remove method is only in Dart.
2015-02-25 15:56:08 -08:00
Alex Eagle
642e9a36b7
fix es6 compilation for Map.remove.
...
In dart, Map has a remove method,but in ES6 it is delete.
2015-02-25 15:44:29 -08:00
vsavkin
6b2650996c
fix(parser): parse pipes in template bindings
2015-02-25 14:39:44 -08:00
Pawel Kozlowski
85abfa943d
feat: add keyValDiff to default pipes
2015-02-25 13:24:59 -08:00
Pawel Kozlowski
4a5d53c549
feat: allow using KeyValueChanges as a pipe
2015-02-25 13:24:59 -08:00
Bertrand Laporte
33b503720a
fix rebase glitch in PR #570
...
Closes #787
2015-02-25 10:04:48 -08:00
Tim Blasi
50a74b1d91
feat(dart/transform): Generate setter stubs.
...
Generate calls to Reflector#registerSetters from the information in
provided `Directive#bind` values.
This is only an initial attempt - it covers only the most basic values
of `bind`.
Closes #780
2015-02-25 09:54:13 -08:00
Victor Berchet
1376e49ea0
fix(Injector): fix dependencies in static injectors
...
Closes #784
2015-02-25 09:52:56 -08:00
Bertrand Laporte
94e203b9df
feat(DirectiveParser): throw errors when expected directives are not present
...
closes #527
Closes #570
2015-02-24 20:57:21 -08:00
Tobias Bosch
715ee14ced
release: release 2.0.0-alpha.11 which includes benchpress
2015-02-24 17:01:48 -08:00
Tobias Bosch
b0c6db1efb
fix(benchpress): support `tdur` in events
2015-02-24 16:53:44 -08:00
Tobias Bosch
cde8ffd6d9
feat(publish): update files to publish to npm
2015-02-24 16:53:44 -08:00
Yegor Jbanov
cfe71def7e
chore(packaging): 0.0.0-alpha.9; pubspec cleanup
2015-02-24 11:42:05 -08:00
Victor Berchet
e05079f4a8
feat(rtts_assert): avoid deep recursion in prettyPrint
2015-02-24 19:40:27 +01:00
Pawel Kozlowski
908a0aa7dc
test: introduce TemplateResolver mock
...
Closes #768
2015-02-24 10:34:52 -08:00
Sekib Omazic
4d35dd4d45
docs(02_directives.md): Change the description of bind property
...
Also add attribute open to the html
Closes #767
2015-02-24 10:34:26 -08:00
Tim Blasi
3b6aaf9054
feat(dart/transform) Remove import of dart:mirrors
...
+ Precede the call to `new ReflectionCapabilities()` with our generated
code which populates the reflection map statically.
+ Add the import of our generated code.
+ Once we are generating all necessary code, we will remove the
import of reflection_capabilities.dart and the instantiation of
`ReflectionCapabilities`, cutting the dependency on dart:mirrors.
Closes #761
2015-02-23 18:36:29 -08:00
Kevin Moore
fad25c2b10
chore: Adding return types to Dart facades
...
Closes #758
2015-02-23 14:26:55 -08:00
Yegor Jbanov
d1f03e509b
fix(benchpress): benchpress fixes and a smoke test for Dart
2015-02-23 10:50:51 -08:00
Tobias Bosch
f54f4e89e0
fix(facade): `ListWrapper.sort()` should not return the list
...
This is the semantics of the regular `Array.sort` in JS,
so the wrapper should imitate this.
2015-02-23 10:36:16 -08:00
Pawel Kozlowski
d8103aeca6
docs(di): fix code examples
...
Closes #750
2015-02-21 22:14:26 +00:00
Tim Blasi
fb49946160
feat(dart/transform) Allow ctor stubs to be tree shaken
...
Change the method used to discover Directive annotated classes to ensure
that the Dart code can be tree shaken.
Closes #497
Closes $\x23736
2015-02-21 18:20:05 +00:00
Pawel Kozlowski
0c4fbfc8e2
feat(di): introduce aliasing
...
Closes #710
Closes #747
2015-02-21 18:43:45 +01:00
vsavkin
0dfd287ec3
fix(change_detection): handle locals when invoking a method
...
Closes #660
2015-02-20 17:55:06 -08:00
vsavkin
7f31036427
fix(change_detection): pass the correct previous value when using pipes
...
Closes #588
2015-02-20 17:53:57 -08:00
Tobias Bosch
1d4ffd986d
feat(bench press): allow multiple reporters, metrics and driver extensions.
2015-02-20 17:49:47 -08:00
vsavkin
987a5fdf56
feat(change_detection): add support for pipes in the template
2015-02-20 17:16:57 -08:00
vsavkin
29f5ee0c29
fix(shadow_dom_emulation): handle the case when the array of element injectors has nulls
2015-02-20 15:52:15 -08:00
Tobias Bosch
7aa031b3d3
feat(bench press): use chrome tracing protocol and initial iOS support
2015-02-20 13:20:17 -08:00
Victor Berchet
8a3d9050d9
feat(TreeBenchmark): use angular2 If directive
2015-02-20 20:53:44 +01:00
vsavkin
58ba700b14
feat(change_detection): change binding syntax to explicitly specify pipes
2015-02-20 10:59:46 -08:00
Victor Berchet
69e02ee76f
feat(ViewSplitter): Change template shorthand syntax from '!' to '*'
...
fixes #717
Closes #727
2015-02-20 10:36:30 -08:00
Rado Kirov
b1fc3e87c6
fix(view): move nodes into the live document when cloning.
...
Closes #724
2015-02-20 09:46:10 -08:00
Tim Blasi
329b2eda66
refactor(dart/transform tests): Use actual directive def'n instead of mock.
...
In the transformer unit tests, we previously used a mock directive annotation. This update
substitutes the actual Angular2 directive annotations.
Closes #706
2015-02-20 09:44:56 -08:00
Marc Laval
85211f0a6b
fix(core): workaround for circular dependencies in nodejs
...
Closes #716
2015-02-19 13:42:27 -08:00
Victor Berchet
d0ca07afaa
refactor(Compiler): introduce ShimComponent to shim CSS & DOM in emulated mode
...
Closes #715
2015-02-19 13:42:18 -08:00
Victor Berchet
5111f9ae37
feat(ShadowCss): Make the shim also accept a selector for the host
2015-02-19 13:42:18 -08:00
Victor Berchet
d67f0299cd
feat(ShadowCss): port implementation from webcomponent.js
2015-02-19 13:42:18 -08:00
Marc Laval
89b3995756
refactor(core): remove direct accesses to DOM
...
Closes #713
2015-02-19 13:42:07 -08:00
Marc Laval
3496c8ac54
refactor(change_detection): remove circular dependencies
...
Closes #712
2015-02-19 13:42:00 -08:00
Rado Kirov
a768f2e124
fix(docgen): hide additional exports that throw off docgen.
...
Closes #707
2015-02-18 21:15:01 -08:00
Tim Blasi
4d56a1e1af
chore: Fixing review comments on Dart transformers
...
See https://codereview.chromium.org/927373004/
Closes #705
2015-02-18 21:08:42 -08:00
Kevin Moore
fb5b168b19
chore: Remove unused imports and enable checks for unused imports as part of build
2015-02-18 21:06:30 -08:00
Jeremy Elbourn
821f008462
chore(compiler): add integration tests for @Parent and @Ancestor
2015-02-18 17:20:47 -08:00
Jeremy Elbourn
785ec26322
feat(compiler): make directive bindings optional. Fixes #647
2015-02-18 13:56:14 -08:00
Tobias Bosch
74c0699ad9
fix(build): finally publish to `rtts_assert` on npm
2015-02-18 12:52:27 -08:00
Julie Ralph
5af0ac258b
tests(e2e): upgrade Protractor to 1.7.0 and remove special cases for shadow dom
...
With Protractor 1.7.0, which installs chromedriver 2.14, shadow DOM is supported.
2015-02-18 10:54:48 -08:00
Tobias Bosch
cd90038950
fix(types): Add StringMap type
2015-02-18 09:53:27 -08:00
Pawel Kozlowski
56f4e84d45
fix: flip attr / property bind in directives annotations
...
Fixes #648
Closes #684
2015-02-18 17:07:53 +01:00
Pawel Kozlowski
709c3ca6b5
refactor: use the ExceptionHandler service
...
Fixes #533
Closes #672
2015-02-18 13:48:28 +01:00
Pawel Kozlowski
a1f4060126
feat: introduce ExceptionHandler service
2015-02-18 12:11:16 +01:00
Victor Berchet
53d5f36557
feat(application): move classes to the application level injector
...
fixes #649
2015-02-18 10:10:07 +01:00
vsavkin
695b4ebbc7
feat(change_detection): add support for pipes
2015-02-17 17:12:58 -08:00
Kevin Moore
fa25965939
chore: Remove unused imports
...
Closes #624
2015-02-17 16:49:08 -08:00
Tim Blasi
6e90cacaf4
feat(dart/transformer:: Initial commit of ctor stubs & annotation register
...
Closes #646
Closes #496
Closes #498
2015-02-17 16:34:19 -08:00
Tobias Bosch
5e798c632b
refactor(bench press): wrap measure values into an object with time and iteration number.
...
Closes #689
2015-02-17 16:02:46 -08:00
Tobias Bosch
e163eb2a51
fix(test_lib): support deep compare of objects with private/static fields
2015-02-17 16:02:46 -08:00
Tobias Bosch
674848648a
feat(facade): add support for `Date`
...
Also refactors the dart transpilar to expose
the type mappings for future changes.
2015-02-17 16:02:46 -08:00
Peter Bacon Darwin
538b0879dc
docs(core/01_templates): add <pre> tags to improve layout
...
Closes #687
2015-02-17 15:54:33 -08:00
PatrickJS
40d0505782
refactor(ProtoView): use const for DOM.addClass
...
`DOM.addClass(insertionElement, 'ng-binding');` -> `DOM.addClass(insertionElement, NG_BINDING_CLASS);`
Closes #676
2015-02-17 15:51:33 -08:00
Misko Hevery
cf51057cdd
fix: constrain stack_trace version, which breaks build
2015-02-17 15:07:18 -08:00
Pascal Precht
2dcddcfb4a
docs(templates/directives): fixes several typos
...
Closes #674
2015-02-17 13:43:44 -08:00
Richard Harrington
a002ed1183
docs(core/templates): fix various typo and grammatical errors
...
Closes #666
2015-02-17 13:35:34 -08:00
Richard Harrington
81bc706ef1
docs(core/formatters): fix typos and grammar
...
Closes #665
2015-02-17 12:03:55 -08:00
Gerd Jungbluth
4d1254d6df
docs(core): fix some typos
2015-02-17 11:55:22 -08:00
Yegor Jbanov
08850a579b
chore(packaging): rename NPM package to angular2; remove ng2 tag prefix
2015-02-17 11:46:05 -08:00
Peter Bacon Darwin
83f650fca7
docs(change_detection): add explicit @name and @description
...
This demonstrates how to override the name of a guide doc
2015-02-17 08:08:47 +00:00
gdi2290
85d4d13c77
docs(02_directives): TemplateConfig -> @Template
...
Update docs with new template api and remove previous cssUrl api
2015-02-17 08:54:20 +01:00
Tobias Bosch
f6284f2a55
feat(benchpress): rewritten implementation
...
Limitations:
- cloud reporter is not yet supported any more
2015-02-16 11:43:27 -08:00
Peter Bacon Darwin
a0e284ed0e
docs(core/formatters): add some dummy code to stop marked plugin from bombing
2015-02-15 15:46:04 +00:00
Pawel Kozlowski
92afad6ebc
feat: support bindings for the 'role' attribute
...
Closes #630
2015-02-14 21:24:40 +01:00
Pawel Kozlowski
1846ce8c68
feat: support binding to aria-* attributes
...
Closes #643
2015-02-14 20:28:08 +01:00
Yegor Jbanov
6d45153b67
fix(benchmarks): fix scrolling benchmark; add more tests
2015-02-13 17:35:19 -08:00
Victor Berchet
e6c8bde808
feat(Compiler): Multiple template per component
...
fixes #596
- TemplateConfig becomes Template
- introduce a TemplateResolver to pick the cmp template,
- @Component and @Template are disociated
2015-02-13 18:07:08 +01:00
Matias Niemelä
52b062621d
Update 01_templates.md
2015-02-13 12:04:03 -05:00
Victor Berchet
6d23d00057
refactor(ViewPort): @Template -> @Viewport, ViewPort -> ViewContainer
...
fixes #595
2015-02-13 17:48:27 +01:00
Kevin Moore
3519714f64
add types
2015-02-13 16:38:03 +01:00
Marc Laval
0499eeb231
refactor(facade): remove dependency to rtts_assert
...
Closes #593
2015-02-13 12:57:10 +01:00
Marc Laval
6d8ccaa8e4
feat(TemplateConfig): support array of arrays in TemplateConfig directives
...
Fixes #592
Closes #600
2015-02-12 11:56:45 +01:00
Victor Berchet
8844671c8d
feat(EventManager): implement the EventManager
2015-02-12 10:46:11 +01:00
vsavkin
91fd5a69bf
test(change_detection): add an integration test verifying that binding propagation config works
2015-02-11 17:54:07 -08:00
Yegor Jbanov
234e1eccca
chore(sourcemaps): add e2e test
2015-02-11 15:07:13 -08:00
Tobias Bosch
013e1faf27
fix(build): support transpile to commonjs
2015-02-11 13:09:52 -08:00
Victor Berchet
fc1b791a7a
fix(view): ViewPort light should come from the direct parent
2015-02-11 09:16:53 +01:00
Victor Berchet
b953956a35
refactor(view_spec): Drop SomeComponentWithEmulatedShadowDom
2015-02-11 09:16:53 +01:00
Tobias Bosch
bbd212c256
fix(build): use `rtts-assert` instead of `ng-rtts-assert`.
...
We have the rights now :-)
2015-02-10 17:02:33 -08:00
Tobias Bosch
729e38af19
feat(build): add npm publish script
...
Also fixes gulpfile:
- `runSequence` needs to be called with `done` callback
- `es5build` should only run when the task executes…
2015-02-10 16:28:28 -08:00
Rado Kirov
6e923cbf84
fix(compiler): elements with events only create binders but not protoElementInjectors.
...
Closes #577
2015-02-10 15:29:34 -08:00
Tobias Bosch
dd532fee72
feat(build): add package.json and README.md for publishing to npm
2015-02-10 11:52:42 -08:00
vsavkin
4b24734855
feat(forms): add support for checkbox
2015-02-10 08:44:25 -08:00
Victor Berchet
74f92c6a79
perf(Compiler): use Promises only when strictly required
2015-02-10 09:13:21 +01:00
Victor Berchet
47042bc503
feature(ShadowDomTransformer): create a compiler step to transform the shadow DOM
2015-02-10 08:54:37 +01:00
Rado Kirov
7bf5ab8f43
feat(view_pool): adds a view pool of dehydrated views per protoview.
2015-02-09 22:17:38 -08:00
Kara
617206bd1c
docs: Update variables to match example
...
It looks like the {{item}} variable in the examples should be {{person}}, as that is what has been exported (#person, etc).
It seems like the docs aren't finalized, but the discrepancy might confuse people coming in to learn from them in the meantime.
Closes #589
2015-02-09 19:54:07 -08:00
Jorge Cruz
4ceb865632
docs(01_templates.md): typos
...
Fix spelling errors in 01_templates.md
Closes #585
2015-02-09 19:53:40 -08:00
Tobias Bosch
6f59f2f5a3
fix(transpile): fix usage of `int` and references to `assert` module
2015-02-06 22:06:55 -08:00
Tobias Bosch
f39c6dc2c7
fix(setup): use upstream traceur with explicit patches
...
Also correct the transpile to ES6
Also support generics correctly
All patches are hooked in via `/tools/transpiler/index.js`
https://github.com/google/traceur-compiler/issues/1700
https://github.com/google/traceur-compiler/issues/1699
https://github.com/google/traceur-compiler/issues/1708
https://github.com/google/traceur-compiler/issues/1625
https://github.com/google/traceur-compiler/issues/1706
2015-02-06 17:04:08 -08:00
Marc Laval
cf169f13a0
fix(compiler): add missing support to string literals
...
Fixes #531
Closes #559
2015-02-07 00:20:54 +01:00
Jeremy Elbourn
6dbfe0dc2e
feat(vars): assignment of component or element instance to vars.
2015-02-06 15:13:31 -08:00
vsavkin
ab733bd80e
refactor(change_detection): rename group memento into directive memento
2015-02-06 13:55:49 -08:00
vsavkin
1ec796a601
cleanup(change_detection): rename field name
2015-02-06 13:54:55 -08:00
vsavkin
9240b09011
refactor(directives): directives use declare that they listen to onChange in the annotations
2015-02-06 13:53:49 -08:00
Pawel Kozlowski
ee3f709fbf
feat: support binding to style.stylename.suffix
...
Closes #553
2015-02-06 12:30:03 -08:00
Yegor Jbanov
dbdadbafe9
chore(pub): update authors
2015-02-06 11:46:49 -08:00
Yegor Jbanov
d5b2c130ca
chore(pub): add primary authors, description and homepage to pubspec
2015-02-06 11:40:16 -08:00
vsavkin
e9a254ae86
refactor(forms): rename decorators into directives
2015-02-06 11:03:41 -08:00
vsavkin
640134dee1
feat(forms): initial implementation of forms declared in html
2015-02-06 11:03:41 -08:00
vsavkin
fa7cbf9bb1
test(di): add a test to di checking that child bindings are not used when resolving the dependencies of a parent binding
2015-02-06 09:39:22 -08:00
Marc Laval
6bfa48bc64
refactor(directives): Drop ng- prefix from all angular directives and rename NgRepeat to Foreach
...
fixes #532
Closes #539
2015-02-06 09:24:50 -08:00
Bertrand Laporte
63f23ec0b6
fix(life_cycle): remove cyclic dependency
...
fixes #477
Closes #530
2015-02-06 09:23:59 -08:00
Yegor Jbanov
5010cf9757
chore(view): remove obsolete HACK comment
2015-02-05 21:19:53 -08:00
Rado Kirov
7dba3a3e32
fix(benchmarks): fix infinite scroll benchmark.
2015-02-05 20:47:30 -08:00
Victor Berchet
746f85a621
feat(compiler, ShadowDom): adds TemplateLoader using XHR.
...
Also adds css shimming for emulated shadow dom and makes the shadowDom
strategy global to the application.
2015-02-05 19:47:29 -08:00
Yegor Jbanov
fcbdf02767
feat(perf): port table scrolling benchmark to Angular 2
2015-02-05 18:33:57 -08:00
Yegor Jbanov
d144e9a345
chore(packaging): fix warnings in forms
2015-02-05 15:47:13 -08:00
Yegor Jbanov
50b553964d
chore(packaging): update imports in forms
2015-02-05 15:47:13 -08:00
Yegor Jbanov
8250a8c1ca
chore(packaging): update benchmark imports
2015-02-05 15:47:13 -08:00
Yegor Jbanov
c99a575b1f
chore(merge): forms, compiler
2015-02-05 15:47:12 -08:00
Yegor Jbanov
3f228669d7
chore(packaging): update import for the new file structure
2015-02-05 15:47:12 -08:00
Yegor Jbanov
3820609f24
chore(packaging): move files to match target file structure
2015-02-05 15:46:13 -08:00
Pawel Kozlowski
7ce4f66cdc
feat: support binding to class.classname
...
Closes #551
2015-02-05 15:19:23 -08:00
vsavkin
ab9438ffdf
fix e2e tests
2015-02-05 14:36:18 -08:00
Bertrand Laporte
3395624cb3
feat(template): add bang syntax shortcut
...
Closes #522
2015-02-05 11:55:49 -08:00
vsavkin
cdb1e82216
feat(forms): initial implementation of forms
2015-02-05 11:55:49 -08:00
Kevin Moore
796d58c621
chore(clean-up): remove unused test method
2015-02-05 11:55:49 -08:00
vsavkin
4b8105c165
cleanup
2015-02-05 11:55:49 -08:00
vsavkin
fc6e421e7e
feat(compiler): add BindingPropagationConfig to the list of pre-built objects
2015-02-05 11:55:49 -08:00
vsavkin
23a080026a
feat(change_detection): add mode to ChangeDetector
2015-02-05 11:55:49 -08:00
vsavkin
3067601961
feat(change_detection): update change detection benchmark
2015-02-05 11:55:49 -08:00