47b6b05017
doc(Directive): fix the inline doc for lifecycle events
2015-06-11 13:11:09 -07:00
6ca81fb98c
refactor(ProtoViewDto): switch to enum
2015-06-11 17:11:34 +02:00
af35ab56a3
fix(life_cycle): throw when recursively reentering LifeCycle.tick
2015-06-11 07:43:14 -07:00
15dab7c5b2
fix(ng_zone): updated zone not to run onTurnDown when invoking run synchronously from onTurnDone
2015-06-11 07:43:13 -07:00
2ccc65d7fd
fix: Improve error message on missing dependency
2015-06-10 16:40:38 -07:00
2cc2196140
docs(annotations_impl): fix invalid code blocks
2015-06-09 23:11:08 +01:00
f34f8df319
refactor(xhr): move render's xhr implementation to render/
...
The existence of this module in the services/ folder led some to believe xhr
is meant to be a general-purpose http library.
Fixes #2305
2015-06-09 10:28:35 -07:00
83e99fc72d
fix(bundle): makes interfaces.ts non-empty when transpiled.
...
System.js seems detect an empty file as global and choke on exporting
symbols from angular2/angular2 (possibly a bug in system.js).
As temporary measure we make sure that the file has some (fake) runtime
code left.
Closes : #2343
2015-06-08 17:52:25 -07:00
6a6b43de07
feat(ElementInjector): throw if multiple directives define the same host injectable
...
relates to #2015
2015-06-08 20:34:44 +02:00
29c72abcc4
feat(Events): allow a different event vs field name
...
closes #2272
closes #2344
2015-06-08 19:29:49 +02:00
69b75b7fd8
feat(view): added support for exportAs, so any directive can be assigned to a variable
2015-06-04 14:14:03 -07:00
827841ec5b
refactor(render): add DomElement
...
Replaces the multiple arrays of `DomView`
by a single array with `DomElement`s.
Note: this commit does not show a performance regression
(tested against the tree benchmark locally).
2015-06-04 11:44:26 -07:00
31a3a19dac
doc(Visibility): fix inline docs
2015-06-04 09:09:11 +02:00
552985e305
fix(types): parametrize QueryList.
2015-06-03 17:08:55 -07: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
5030ffb01c
feat(view): introduce free embedded views
...
Free embedded views are view instances that are created
logically in the same was as views of a ViewContainer,
but their dom nodes are not attached.
BREAKING CHANGE:
- `Renderer.detachFreeHostView` was renamed to
`Renderer.detachFreeView`
- `DomRenderer.getHostElement()` was generalized into
`DomRenderer.getRootNodes()`
2015-06-03 14:42:00 -07:00
d32f58926d
docs(ng-if): fix some missed occurrences of if, for, switch in docs
2015-06-02 15:30:04 -07:00
6a0fe93ba9
chore(docs): fix another link broken by clang-format
2015-06-02 15:30:03 -07:00
dc060e8b64
docs(clang): format updates
2015-06-02 15:30:03 -07:00
b746e0c9f0
docs(docgen): tell dgeni to use ts files and fix some bad links
2015-06-02 15:30:03 -07:00
8811337622
refactor(ElementInjector): add interfaces for strategies
2015-06-02 10:09:39 +02:00
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
75578f41e7
feat(view): add AppViewListener
interface
...
Basic functionality how element probe is hooked into
the system.
2015-05-29 11:33:22 -07:00
ffb219fb91
style(dart): Format Dart source with dart_style 0.1.8
2015-05-29 10:42:47 -07:00
0db88f34b8
refactor(annotations): stricter types
2015-05-29 11:44:45 +02:00
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
c39c8ebcd0
feat(change_detection): added onInit and onCheck hooks
2015-05-28 16:46:22 -07:00
34cfc9f474
feat(di): added optional self parameter to Parent, Ancestor, and Unbounded
2015-05-28 09:53:06 -07:00
30b6542fc8
feat(core): added support for detecting lifecycle events based on interfaces
2015-05-27 16:23:42 -07:00
2b6a653050
feat(core): added missing interfaces for onDestroy and onAllChangesDone lifecycle events
2015-05-27 15:50:08 -07:00
2c25055828
chore: reformat the code base using the clang-format 1.0.15.
2015-05-27 15:28:22 -07:00
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
0c7f05f56a
fix(injectable): add missing @Injectables annotations
...
Closes #2173
2015-05-27 10:31:20 -07:00
d48fae3566
fix(core): resurrect OnChange interface
2015-05-22 16:48:00 -07:00
15f1eb28a2
fix(deps): Update clang-format to 1.0.14.
2015-05-22 09:39:15 -07:00
b1c9bf14b2
feat(ElementInjector): support an arbitrary number of bindings
...
fixes #1853
2015-05-22 13:42:53 +02:00
cc2c8f6b00
refactor(test): ts’if compiler integration tests.
2015-05-21 17:53:53 -07:00
aec51d616b
refactor(ts'ify): ts’ify mocks, directives and test_lib
...
Also cleans up global types.
2015-05-21 15:33:37 -07:00
00c3693daa
feat(forms): migrated forms to typescript
2015-05-21 13:55:15 -07:00
705ee46f31
fix(di): changed host and view injector to respect visibility
2015-05-21 09:17:56 -07:00
b6b52e62b2
fix(element_injector): fixed element injector to inject view dependencies into its components
2015-05-20 17:48:04 -07:00
e61d82b9be
refactor(core): ts’ify core
2015-05-20 16:30:41 -07:00
28c2b8f432
fix(element_injector): fixed element injector to resolve dependencies of regular services
2015-05-20 10:56:33 -07:00
7643d979c7
docs(annotations): fixes
2015-05-20 08:23:35 +02:00
8aa3fcfb63
chore(build): don’t include export var __esModule = true
in every file
...
But do it during the build process for cjs.
Right now we only need this when we transpile from ts
directly to es5. This is only the case in our
cis build, as for our browser build we only transpile
from ts to es6 via ts and then use traceur to do
the rest.
2015-05-19 15:12:59 -07:00
1beadb8607
refactor(render): ts’ify render api
2015-05-19 15:12:59 -07:00
791caf0037
fix(router): use appRootComponentToken to get root route configs
...
Closes #1947
2015-05-19 14:36:45 -07:00
8ab773538b
fix(errors): require passing stack traces explicitly in ng2 own code
2015-05-19 12:48:00 -07:00
b066b8d15a
feat(di): added hostInjector and viewInjector to the Directive annotation
2015-05-18 18:30:53 -07:00