vsavkin
7b511462af
refactor(core): renamed injectables into appInjector
...
BREAKING CHANGES
Before:
@Component({injectables: [Type]} class MyCmp{}
After:
@Component({appInjector: [Type]} class MyCmp{}
2015-05-18 18:30:52 -07:00
vsavkin
3a53f67911
feat(di): removed publishAs
...
BREAKING CHANGES
Removes the publishAs property from the Component annotation.
2015-05-18 18:30:52 -07:00
vsavkin
155b1e2b35
feat(pipe): reexported pipes to genereate docs
2015-05-18 18:24:26 -07:00
Brian Ford
83b97c485b
refactor(router): use DynamicComponentLoader instead of ViewContainer
2015-05-18 15:57:08 -07:00
Brian Ford
5db89071d4
fix(router): improve route matching priorities
2015-05-18 15:57:08 -07:00
Brian Ford
c29ab86d85
refactor(router): improve control flow of descendant route activation
2015-05-18 15:57:08 -07:00
Brian Ford
6b02cb9b44
test(router): rename helpers in test
2015-05-18 15:57:08 -07:00
gdi2290
f9fd4926ef
docs(pipes): fix @View
...
we all copy/pasta ObservablePipe which had the typo
Closes #1958
2015-05-18 14:34:37 -07:00
gdi2290
986038242a
feat(change_detection): json pipe
...
Closes #1957
2015-05-18 14:34:37 -07:00
Josef Meier
8e84f8a1c4
chore: don't throw if paramTypes is undefined.
...
Closes #1955
2015-05-18 14:34:37 -07:00
Tim Blasi
edfbc25768
style(change detect): Fix typo unitialized => uninitialized
...
Closes #1928
2015-05-18 14:34:37 -07:00
Tim Blasi
05a1c6c183
perf(compiler): Avoid unnecessary List concats
...
Update `BindingRecordsCreator#getBindingRecords` and `ProtoRecordBuilder#addAst`
to avoid unnecessary calls to `ListWrapper.concat`.
Closes #1905
2015-05-18 14:34:36 -07:00
Pawel Kozlowski
3011cd86bd
feat(compiler): special-case class attribute in hostAttributes
...
Closes #1774
Closes #1841
2015-05-18 14:34:36 -07:00
vsavkin
11e4385173
feat(forms): improved error messages
...
Closes #1839
2015-05-18 14:34:36 -07:00
Victor Berchet
ad29b12cde
doc(NgFor): fix inline doc
2015-05-18 23:12:41 +02:00
Victor Berchet
842459aa46
doc: fix & sync with latest updates
2015-05-18 23:11:45 +02:00
Victor Berchet
b033416a45
doc(DI): fix inline doc in binding.ts
...
fixes #1894
2015-05-18 23:10:41 +02:00
Victor Berchet
7310b09a1a
doc(UrlResolver): inline doc
...
fixes #1732
2015-05-18 23:09:35 +02:00
Jeremy Elbourn
bb2eda2d15
feat(element_injector): allow @Optional for ProtoViewRef
2015-05-18 12:48:33 -07:00
Victor Berchet
0114cd97b6
refactor(RouteRegistry): optimize recognize()
2015-05-18 19:32:33 +02:00
Victor Berchet
fc13cdab3a
refactor(router): add types
2015-05-18 19:32:33 +02:00
Tim Blasi
3644036693
refactor(proto_view_factory): Move getChangeDetectorDefinitions out of ProtoViewFactory
...
Move `getChangeDetectorDefinitions` out of `ProtoViewFactory` since it
does not depend on any state in that object.
2015-05-18 08:45:59 -07:00
Misko Hevery
1eea2b254e
feat: allow for forward references in injection
...
It is possible for a class defined first to be referencing a class defined later,
and as a result at the time of the definition it is not possible to access the later's
class reference. This allows to refer to the later defined class through
a closure.Closes #1891
2015-05-15 21:12:57 -07:00
Yegor Jbanov
b6f29b4448
feat(errors): preserve stack traces of user exceptions in Dart
2015-05-15 15:03:31 -07:00
Tobias Bosch
421d8916a6
refactor(view_manager): split `inPlace` views into root and free host views.
...
BREAKING CHANGE:
`AppViewManager.createInPlaceHostView` is replaced by
`AppViewManager.createRootHostView` (for bootstrap) and
`AppViewManager.createFreeHostView` (for imperative components).
The later creates new host elements that are not attached anywhere.
To attach them, use `DomRenderer.getHostElement(hostviewRef)`
to get the host element.
Closes #1920
2015-05-15 13:24:53 -07:00
Matan Lurey
a38a0d6f87
Merge pull request #1909 from angular/view-ref-return-types
...
Update view_ref.js
2015-05-15 12:32:22 -07:00
gdi2290
7a4a635399
feat(change_detection): uppercase and lowercase pipes
...
because the world needs more uppercase madness
[✔] clang-format
[✔] tests
2015-05-15 19:46:52 +02:00
gdi2290
557d54b3de
feat(facade): toUpperCase and toLowerCase
2015-05-15 19:46:52 +02:00
Victor Berchet
c47902a471
refactor(reflector): improve types
2015-05-15 19:26:06 +02:00
Victor Berchet
25cd6e4321
fix(Compiler): add an error when a directive is null or undefined
...
fixes #1908
2015-05-15 19:26:06 +02:00
Matan Lurey
6ad5fa0d9d
Update view_ref.js
...
Add return types.
2015-05-14 12:36:16 -07:00
PatrickJS
8ad0205948
docs(promise_pipe.ts): correct "async" pipe
...
the syntax is now combined with `|async` rather than separate `|promise`
2015-05-14 17:25:46 +02:00
gdi2290
1d11fdecdc
docs(annotations): correct List for directives for Component
...
@Component takes a List of directives
https://github.com/angular/angular/blob/master/modules/angular2/src/core
/annotations_impl/annotations.js#L867
2015-05-14 08:13:54 -07:00
Tobias Bosch
ecb068019b
refactor(proto_view_factory): expose data for generating change detectors
...
Also consolidates metadata handling in `ElementInjector`
BREAKING CHANGE:
- renames `DirectiveMetadataReader` into `DirectiveResolver`
and removes `src/core/compiler/directive_metadata`.
Fixes #1712
Fixes #1713
2015-05-13 17:11:59 -07:00
Tim Blasi
5114411749
perf(dart): Improve Dart ListWrapper#concat
...
Improve implementation of `ListWrapper#concat` to take advantage of our
knowledge of input list sizes.
2015-05-13 16:30:50 -07:00
vsavkin
08f21dbf51
feat(change_detection): implemented change detection that can be configured with pregenerated change detectors
2015-05-13 16:23:22 -07:00
vsavkin
d8c7c274e4
refactor(change_detector): extracted ChangeDetectorDefinition
2015-05-13 16:23:22 -07:00
vsavkin
685a6507b6
feat(compiler): added support for [()] syntax
2015-05-13 16:08:59 -07:00
Jacob MacDonald
846354473d
chore(cleanup): Remove some unused files.
2015-05-13 13:56:54 -07:00
Brian Ford
390cfb793b
fix(router): generate links for router-link with baseHref
2015-05-13 12:22:45 -07:00
Brian Ford
17392f663f
fix(router): sort possible routes by cost
2015-05-13 11:57:57 -07:00
Victor Berchet
8b6fa1cf19
doc: fix inline docs
2015-05-13 11:56:51 +02:00
Victor Berchet
c20060d259
fix(directives): fix import path
2015-05-13 11:56:50 +02:00
Chirayu Krishnappa
af9dcad8e3
fix(facade): MapWrapper.createFromPairs
...
Closes #1640
2015-05-12 16:10:00 -07:00
Misko Hevery
111fa60a93
chore: rename for to ng-for
...
Closes #1598
Closes #1295
Closes #1827
Closes #1827
2015-05-12 15:32:44 -07:00
Misko Hevery
e9f236b70f
chore: rename switch to ng-switch
2015-05-12 15:32:44 -07:00
Misko Hevery
78d3f62b6a
chore: rename non-bindable to ng-non-bindable
2015-05-12 15:32:44 -07:00
Misko Hevery
d310a9c0b4
chore: rename if to ng-if
2015-05-12 15:32:44 -07:00
vsavkin
032f8b7840
fix(test): fixed a test
2015-05-12 14:40:20 -07:00
Misko Hevery
f302f70330
chore: convert dom module to typescript
2015-05-12 12:59:53 -07:00