vsavkin
7c2c1a8e03
docs(change_detection): add docs to ChangeDetectorRef
2015-09-24 18:10:47 +00:00
vsavkin
9d2d674ef8
docs(change_detection): add docs to change detection exceptions
2015-09-24 18:10:47 +00:00
Tobias Bosch
7470ad1bd1
refactor(compiler): various cleanups
...
- use `$implicit` variable value correctly
- handle `ng-non-bindable` correctly
- add some more assertions to `TemplateCompiler`
- make `CompiledTemplate` const
- fix default value for `@Directive.moduleId`
- add new compiler to application bindings
BREAKING CHANGE:
- `Compiler.compileInHost` and all methods of `DynamicComponentLoader` don’t take `Binding` any more, only `Type`s. This is in preparation for the new compiler which does not support this.
Part of #3605
Closes #4346
2015-09-24 10:56:29 -07:00
Marc Laval
bffa2cb59b
feat(animate): cross-browser compatibility
...
Closes #4243
2015-09-24 10:24:40 +02:00
Marc Laval
4f56a01b3b
fix(shims): add requestAnimationFrame shim for IE9 and Android
...
Fixes #4209
2015-09-24 10:23:58 +02:00
Igor Minar
ea15d6646b
docs(examples): add empty examples directory for api docs examples
...
This is a place for api docs examples hand written in an idiomatic way.
Closes #4341
2015-09-23 21:30:17 +00:00
Misko Hevery
8427863bab
feat(upgrade): Allow including ng2/1 components in ng1/2
...
Closes #3539
2015-09-23 05:02:43 +00:00
Brian Ford
ec68074e69
docs(router): improve docs for Instruction and related classes
...
Closes #4303
2015-09-22 21:27:47 -07:00
Jeff Cross
3d6e3c2551
fix(http): change http interfaces to types
...
Types were previously not handled correctly by the type definition
generation process, so a couple of things in http had to be changed
to interfaces. This issue has been fixed, so now they're types again.
Closes #4024
2015-09-23 01:06:23 +00:00
Brian Ford
0366f317af
docs(router): improve docs for Location and related classes
...
Closes #4299
2015-09-23 00:47:15 +00:00
Brian Ford
8a2370750a
docs(router): improve documentation for router bindings
2015-09-23 00:47:15 +00:00
Brian Ford
c01f327194
docs(router): improve docs for lifecycle hooks
...
Closes #4300
2015-09-23 00:47:15 +00:00
Brian Ford
5c0a9eff62
docs(router): improve docs for RouteDefinition classes
2015-09-23 00:47:15 +00:00
Jeff Cross
9c4ab2b2b8
docs(http): fix missing variable from BaseRequestOptions example
2015-09-22 17:21:05 -07:00
Jeff Cross
5ea9c1e7fd
docs(http): add docs and examples for BaseResponseOptions
...
Closes #4324
2015-09-23 00:16:53 +00:00
Jeff Cross
662a585fc2
docs(http): add docs and examples for ResponseOptions
2015-09-23 00:16:53 +00:00
Jeff Cross
ae3713ef95
docs(http): add docs and examples for BaseRequestOptions
2015-09-23 00:16:53 +00:00
Jeff Cross
707e6f7671
docs(http): improve docs and add example for RequestOptions
2015-09-23 00:16:53 +00:00
Brian Ford
a554f1c45d
chore(router): do not export Url class
...
Closes #4304
2015-09-22 23:51:19 +00:00
Brian Ford
41b019f5f8
refactor(router): do not export RootRouter
...
BREAKING CHANGE:
It's unlikely that any apps were explicitly referencing `RootRouter`, but if they were they should
prefer to use the `routerBindings` helper or the `ROUTER_BINDINGS` const exported from `angular2/router`
2015-09-22 23:51:19 +00:00
Misko Hevery
af2cd4d6f3
fix(api): align dart/js APIs
2015-09-22 23:11:40 +00:00
Alex Eagle
577ee3744a
fix(bug): reflect Dart interfaces from superclass as well
...
fixes #4221
Closes #4222
2015-09-22 22:31:07 +00:00
vsavkin
fd3eae9623
docs(di): add missing docs
...
Closes #4302
2015-09-22 21:38:33 +00:00
vsavkin
238dfc1e17
cleanup(di): make KeyRegistry private
2015-09-22 21:38:33 +00:00
vsavkin
29b56ceb40
cleanup(di): make DependencyProvider private
2015-09-22 21:38:33 +00:00
Tobias Bosch
cc0c30484f
refactor(compiler): cleanup and preparation for integration
...
- Rename `DirectiveMetadata` into `CompileDirectiveMetadata`, merge
with `NormalizedDirectiveMetadata` and remove `ChangeDetectionMetadata`
- Store change detector factories not as array but
directly at the `CompiledTemplate` or the embedded template
to make instantiation easier later on
- Already analyze variable values and map them
to `Directive.exportAs`
- Keep the directive sort order as specified in the
`@View()` annotation
- Allow to clear the runtime cache in `StyleCompiler`
and `TemplateCompiler`
- Ignore `script` elements to match the semantics of the
current compiler
- Make all components dynamically loadable and remove
the previously introduced property `@Component#dynamicLoadable`
for now until we find a better option to configure this
- Don’t allow to specify bindings in `@View#directives` and `@View#pipes` as this was never supported by the transformer (see below for the breaking change)
BREAKING CHANGE:
- don't support DI bindings in `@View#directives` and `@View@pipes` any more in preparation of integrating the new compiler. Use `@Directive#bindings` to reexport directives under a different token instead.
Part of #3605
Closes #4314
2015-09-22 12:50:03 -07:00
mgechev
f600d88209
docs: fix typo
...
Closes #4306
2015-09-22 13:32:43 +00:00
mgechev
662ff47627
docs: fix typos
...
Closes #4308
2015-09-22 12:15:49 +00:00
Jeff Cross
da6def3772
docs(http): add documentation for Request
...
Closes #4238
2015-09-21 22:20:58 +00:00
Jeff Cross
c868f40bef
docs(http): improve docs for Headers
2015-09-21 22:20:58 +00:00
Jeff Cross
17af481134
docs(http): add docs and examples for JSONP_BINDINGS
2015-09-21 22:20:58 +00:00
Jeff Cross
b2695e46e1
docs(http): add docs and examples for HTTP_BINDINGS
2015-09-21 22:20:58 +00:00
vsavkin
b0effe8e27
docs(di): add docs to Injector
...
Closes #4254
2015-09-21 21:55:04 +00:00
vsavkin
794e3870c5
docs(di): make TypeLiteral private
...
Closes #4290
2015-09-21 20:44:49 +00:00
vsavkin
95c8eef97a
docs(di): add docs to OpaqueToken
2015-09-21 20:44:49 +00:00
vsavkin
b8c4d3e7fb
docs(di): add docs to Key
2015-09-21 20:44:49 +00:00
Brian Ford
6e0ca7f39a
fix(router): use StringWrapper.startsWith
2015-09-21 12:13:07 -07:00
Brian Ford
43f97a951c
refactor(router): move assertComponentExists into facade
...
This is to make way for a refactor to the ng 1.x router directives,
which will use strings rather than controller functions in route configs.
2015-09-21 11:17:19 -07:00
vsavkin
c2a60f1624
feat(core): add support for @ContentChild and @ViewChild
...
Closes #4251
2015-09-20 01:45:09 +00:00
vsavkin
2e9de0b169
feat(core): add sugar to use ContentChildren and ViewChildren as prop decorators
...
Closes #4237
2015-09-20 00:43:04 +00:00
vsavkin
5dbe292615
feat(core): add support for ContentChildren and ViewChildren
2015-09-20 00:43:04 +00:00
Rado Kirov
5809a02624
docs(query): edit and extend query and view query docs.
2015-09-18 18:27:42 -07:00
Brian Yarger
3525d8a394
fix(http): throw if url is not string or Request
...
Closes #4245
Closes #4257
2015-09-18 23:33:17 +00:00
Alfonso Presa
283415beab
fix(sfx): Include ngHttp in SFX bundle
...
fixes : #3934
Closes #3933
2015-09-18 09:07:31 -07:00
Marc Laval
390aacd442
fix(facade): workaround for lack of Symbol.iterator in es6-shim
...
Closes #4219
Fixes #4216
2015-09-18 09:46:13 +02:00
Pascal Precht
5a3ce87915
chore(http): remove unused properties from Request
...
This removes properties mentioned in #3339
Closes #3339
Closes #3823
2015-09-17 17:16:47 -07:00
Alex Rickabaugh
b9ea394c85
docs(core): Add plnkr example for *ng-if.
2015-09-17 15:28:11 -07:00
Alex Rickabaugh
06f8330cfa
fix(core): Document the new bootstrap APIs. Also rename rootBindings() to platformBindings() to be more clear about what it is.
...
Closes #4218
2015-09-17 20:58:38 +00:00
Tobias Bosch
f490565b09
refactor(compiler): cleanup method and property names
...
Closes #4236
2015-09-17 20:41:37 +00:00
vsavkin
d05df30a94
docs(di): add docs to forwardRef
2015-09-17 13:13:40 -07:00
vsavkin
e1c0b1abcb
docs(di): add docs to DI exceptions
2015-09-17 13:13:30 -07:00
vsavkin
b2e9da4905
docs(di): add docs for Binding
2015-09-17 13:12:50 -07:00
Victor Mejia
9179afb2a1
docs(compiler/element_injector): fix typo
...
Closes #4210
2015-09-17 13:35:21 +00:00
Craig Doremus
adb3813e85
docs(shared/service_message_broker): fix typo
...
Typo fix on line 32 suggested by PatrickJS
Closes #4226
2015-09-17 12:59:48 +00:00
Naomi Black
563fffd9b0
docs(chore): fix bad links in the API docs
2015-09-16 23:28:16 -07:00
Tobias Bosch
457b689bf0
feat(compiler): add TemplateCompiler
...
TemplateCompiler is the entry point to the new compiler
Related to #3605
Closes #4220
2015-09-17 04:24:15 +00:00
vsavkin
eaa20f661a
fix(exceptions): NoAnnotationError message is not displayed
...
Closes #4215
Closes #4223
2015-09-17 00:58:55 +00:00
Yegor Jbanov
241632aaa1
feat(code size): make assertionsEnabled() statically computable by dart2js
...
Our existing implementation prevented dart2js from statically deducing the
return value. This fix does not yet result in better tree-shaking due to the
following dart2js bugs:
https://github.com/dart-lang/sdk/issues/24354
https://github.com/dart-lang/sdk/issues/24355
Closes #4198
2015-09-16 19:01:48 +00:00
Jeff Cross
06f0d6c046
docs(pipe_transform): make example headers consistent
2015-09-16 11:44:37 -07:00
Jeff Cross
d276370ba1
docs(core): add docs for PipeOnDestroy interface
2015-09-16 11:44:36 -07:00
Jeff Cross
d9776b4112
docs(core): add docs for PipeTransform interface
2015-09-16 11:44:36 -07:00
Igor Minar
53412a71e5
docs(NgZone): add public api docs
2015-09-16 11:42:30 -07:00
Harry Terkelsen
70586b668c
fix(debug): make debug tools take ComponentRef
...
The debug tools used to take ApplicationRefs, which are the old return
type of bootstrap. Now bootstrap returns ComponentRef, so the debug
tools should be updated.
Closes #4203
2015-09-16 18:00:28 +00:00
Igor Minar
8f985dd558
docs(pipe_transform): remove extra backticks
2015-09-16 10:01:37 -07:00
J. Andrew Brassington
045cb90a46
docs(core/facade/collection): Correct typo
...
Add correct spelling of the word "statically"
Closes #4193
2015-09-16 12:14:24 +00:00
Victor Berchet
d6cda15879
refactor(form): misc minor refactoring
...
Closes #3951
2015-09-16 10:34:26 +00:00
Pawel Kozlowski
73351ac00f
fix(NgClass): ignore empty and blank class names
...
Fixes #4033
Closes #4173
2015-09-16 07:56:48 +00:00
vsavkin
16bf335a4a
refactor(async): replace RxJS with RxNext
...
Closes #3110
Closes #4201
2015-09-15 23:44:57 +00:00
Jeff Cross
7b3161a229
fix(pipes): add triple ticks around async_pipe code sample
...
Closes #4110
2015-09-15 15:50:44 -07:00
Pawel Kozlowski
045cc8269f
fix(compiler): remove attributes when expression in [attr.foo]='exp' evaluates to null
...
Fixes #4150
Closes #4163
2015-09-15 19:59:12 +00:00
vsavkin
9f999dd8e4
cleanup(pipes): clean up imports
2015-09-15 11:47:09 -07:00
Lenny
d890c4f827
refactor(pipes): remove LimitTo pipe in favor of slice pipe
2015-09-15 11:42:31 -07:00
Lenny
c2043ec681
feat(pipes): add slice pipe that supports start and end indexes
2015-09-15 11:42:30 -07:00
Lenny
0808eeaa0c
feat(StringWrapper): add support for JS slice method to string
2015-09-15 11:42:30 -07:00
Lenny
bced3aaa17
fix(ListWrapper): make list slice in dart return empty list if start and end are inverted like JS
2015-09-15 11:42:30 -07:00
Misko Hevery
105db02e07
fix(api): remove DomRenderer from public API
...
Closes #4187
2015-09-15 18:12:05 +00:00
Misko Hevery
61b6a475a6
fix(api): remove RecordViewTuple / cleanup NgFor
2015-09-15 18:12:05 +00:00
Misko Hevery
6db9f9013d
fix(api): remove UNDEFINED
2015-09-15 18:12:05 +00:00
Misko Hevery
f7d46e7159
fix(api): remove animation from public API
2015-09-15 18:12:05 +00:00
Misko Hevery
5b6d576f93
chore: add test to prevent accidental changes to public API
2015-09-15 18:12:05 +00:00
David Fuka
255ed69392
docs(router): Typo
...
Closes #4152
2015-09-15 18:07:00 +00:00
Pawel Kozlowski
5f15363dab
feat(CORE_DIRECTIVES): add NgStyle to CORE_DIRECTIVES
...
Fixes #4096
Closes #4161
2015-09-15 17:55:13 +00:00
Ted Sander
a15b679494
feat(ng_for): Add Even and Odd variables to ng_for
...
Add even and odd local variables to ng_for to allow developers to style table rows differently and other features.
Closes #4181
2015-09-15 17:45:32 +00:00
Jennifer Bland
db098650ee
docs: correct typo
2015-09-15 10:19:49 -07:00
Marc Laval
f7b6ff0520
chore(build): improve reliability of the saucelabs job
...
Closes #4091
Closes #4047
2015-09-15 18:34:13 +02:00
Marc Laval
df7f59b3a8
fix(test): do not set ng.probe when ng is null or undefined
2015-09-15 18:33:33 +02:00
Marc Laval
abc4ef31e2
fix(test): AngularProfiler should check before using modern APIs
2015-09-15 18:33:32 +02:00
Marc Laval
55290b9b21
fix(test): PostMessageBusSink tests failing in slow browsers
2015-09-15 18:33:31 +02:00
Marc Laval
d6464633fa
fix(test): StyleCompiler tests failing in Android browsers
2015-09-15 18:33:30 +02:00
Marc Laval
c83207f231
fix(test): Android browser does not support element.click()
2015-09-15 18:33:29 +02:00
Marc Laval
3a7b50f244
fix(shims): function.name to return empty string when no name
2015-09-15 18:33:28 +02:00
Tim Blasi
cb4ff7491a
chore(dart/transform): Integrate protoc into gulp build
...
This change detects if the user has `protoc` available and, if so, uses
it to generate `.pb.dart` files. If not, pre-built files are used
instead.
2015-09-15 08:39:07 -07:00
Brian Ford
5298eb0709
feat(router): enforce convention of CamelCase names in route aliases
...
Closes #4083
2015-09-14 22:46:02 -07:00
Brian Ford
cb4a9a3c04
refactor(router): use CamelCase aliases for routes
2015-09-14 22:46:02 -07:00
Alex Rickabaugh
97d1844bfc
feat(core): Add a long-form syntax for Angular bootstrapping.
...
This change adds a syntax for bootstrapping Angular on a page that allows more fine-grained control of the hierarchy created. platform() creates a platform injector (of which there can only be one). From the platform, .application() creates an Angular application including a Zone and all specified application bindings (e.g. for the DOM, HTTP, Compiler, Renderer, etc). At the application level, .bootstrap() will bootstrap the given component into that application.
Closes #3852
2015-09-14 23:37:39 +00:00
Alex Rickabaugh
193792c27f
refactor(router): Switch from using APP_COMPONENT binding to a manual ROUTER_PRIMARY_COMPONENT binding.
...
With the coming bootstrapping changes, a single application (and thus Router) can have multiple root components. One of these needs to be identified as the "primary" component from which the Router will load its configuration. This is now done by providing a ROUTER_PRIMARY_COMPONENT binding to the primary component type.
2015-09-14 23:37:39 +00:00
Alex Rickabaugh
4f57990d45
feat(core): Support multiple ChangeDetectors in a single LifeCycle.
...
This allows a single LifeCycle to be shared among multiple root components, since each root component has its own ChangeDetector configured.
2015-09-14 23:37:39 +00:00
Yegor Jbanov
9dc1d6ae81
fix(code size): do not rely on Uri in BrowserDomAdapter
...
Closes #4182
2015-09-14 22:51:53 +00:00
Brian Ford
d2458866c1
refactor(router): remove unused Pipeline
2015-09-14 21:21:57 +00:00
Rado Kirov
cac25fe003
chore(build): replace traceur-runtime with es6-shim.
...
This removes traceur as a dependency for the t push -f
angular2 build.
Closes #4148
2015-09-14 21:02:29 +00:00