Pawel Kozlowski
3871f89119
fix(ViewLoader): provide componentId in missing template / templateUrl errors
...
Befor this change it wasn't clear which component is faulty
2015-08-23 07:26:56 +00:00
Misko Hevery
5d403966d5
refactor: rename web-workers to web_workers
...
Closes #3683
2015-08-22 14:20:33 -07:00
vsavkin
e8e430e630
feat(change_detection): added support for observable components and directives
2015-08-21 15:44:45 -07:00
vsavkin
a9ce454b21
fix(change_detection): fixed reflect properties as attributes
...
Closes #3761
2015-08-21 19:08:32 +00:00
vsavkin
b6146394ae
refactor(change_detection): replaced devMode with ChangeDetectorGenConfig
2015-08-21 19:08:32 +00:00
Jason Teplitz
764726d78e
refactor(ApplicationRef): Move ApplicationRef to its own file
...
Closes #3763
2015-08-21 10:17:40 -07:00
Marc Laval
65344fcac9
chore(build): add IE9 to CI
...
Closes #3747
2015-08-21 15:46:26 +00:00
ericmartinezr
9d44ae3d32
fix(docs) Added more readable links
...
Follows https://github.com/angular/angular/pull/3677
I hope this works.
2015-08-21 05:17:28 +00:00
vsavkin
d2d0715568
feat(change_detection): do not reparse AST when using generated detectors
2015-08-21 05:16:31 +00:00
Misko Hevery
b986c54079
chore: remove int in favor for number
...
Closes #3511
2015-08-21 05:10:31 +00:00
yjbanov
8336881a85
feat: track unused reflection data
2015-08-20 18:20:53 -07:00
Marc Laval
b0d27ee896
chore(build): add IE10 to CI
2015-08-21 00:16:34 +02:00
Marc Laval
9ba2ab5cea
chore(build): add IE11 to CI
2015-08-21 00:16:33 +02:00
Marc Laval
1c9be9b5aa
chore(build): add Firefox to CI
2015-08-21 00:16:33 +02:00
vsavkin
195c5c21d4
fix(change_detection): update the right change detector when using ON_PUSH mode
...
Previously, in a case where you have a mix of ON_PUSH and DEFAULT detectors, Angular would update the status of a wrong detector.
2015-08-20 21:55:50 +00:00
Misko Hevery
9afcb00216
fix: wtf paramater passing on scope
...
Closes #3726
2015-08-20 13:47:44 -07:00
Brian Ford
bde6416b40
Revert "Revert "feat(router): add reuse support for angular 1.x router""
...
This reverts commit cef51a7e0d
.
2015-08-20 13:19:58 -07:00
Brian Ford
06487237e5
Revert "Revert "feat(router): add angular 1.x router""
...
This reverts commit 298f1fb6a6
.
2015-08-20 13:19:34 -07:00
Brian Ford
964884e761
Revert "Revert "refactor(router): move ROUTE_DATA token into own file""
...
This reverts commit abb3bd266b
.
2015-08-20 13:19:18 -07:00
yjbanov
984e7b8e17
fix(dart): bad export in core.dart
2015-08-20 08:44:15 -07:00
Victor Berchet
abb3bd266b
Revert "refactor(router): move ROUTE_DATA token into own file"
...
This reverts commit 78a8ba2307
.
2015-08-20 08:06:24 -07:00
Victor Berchet
298f1fb6a6
Revert "feat(router): add angular 1.x router"
...
This reverts commit fde026a9e4
.
2015-08-20 08:06:14 -07:00
Victor Berchet
cef51a7e0d
Revert "feat(router): add reuse support for angular 1.x router"
...
This reverts commit ddb62feae6
.
2015-08-20 08:06:07 -07:00
Shahar Talmi
ddb62feae6
feat(router): add reuse support for angular 1.x router
...
Closes #3698
2015-08-19 20:27:39 +00:00
Brian Ford
fde026a9e4
feat(router): add angular 1.x router
2015-08-19 20:27:39 +00:00
Brian Ford
78a8ba2307
refactor(router): move ROUTE_DATA token into own file
...
This change is to accomodate the router in Angular 1.x
2015-08-19 20:27:39 +00:00
Naomi Black
ffc63fc6d6
docs(dgeni): fix a dgeni link error due to ambiguous link
2015-08-19 12:25:13 -07:00
Jason Teplitz
0b59e664ec
feat(WebWorker) Add channel support to MessageBus
...
closes #3661 and #3686
2015-08-19 10:57:22 -07:00
Tim Blasi
104302a958
refactor(dart/transform): Remove unnecessary getter/setter codegen
...
Currently the transformer generates all getters and setters even when
creating pre-generated change detectors, which remove the need for them.
Generate getters and setters via the model provided by `ProtoViewDto`,
which contains enough information to allow omitting unnecessary getters
and setters from code output.
Allow generating getters, setters, and method names which are Dart
pseudo keywords.
Closes #3489
2015-08-19 17:36:12 +00:00
Tim Blasi
ba2c077b01
refactor(core): Create reusable RecursiveAstVisitor in ast.ts
2015-08-19 17:36:12 +00:00
Pawel Kozlowski
abb0e279a5
docs(metadata): correct ES5 annotation examples
...
Closes #3720
2015-08-19 15:55:49 +00:00
Marc Laval
873b6da120
chore(test): disable tests based on Intl API in non-Chrome browsers
...
Closes #3692
2015-08-19 09:45:34 +02:00
Victor Berchet
f0e7f13f30
doc(NgStyle): fix missing []
...
Closes #3711
2015-08-19 05:46:55 +00:00
Misko Hevery
ccfadb9b47
refactor: make bindings/directives names consistent
...
BREAKING CHANGE
- `routerDirectives` => `ROUTER_DIRECTIVES`
- `routerInjectables` => `ROUTER_BINDINGS`
- `ELEMENT_PROBE_CONFIG` => `ELEMENT_PROBE_BINDINGS`
2015-08-18 21:23:26 -07:00
Brian Ford
72e0b8f7dc
fix(router): allow router-link to link to redirects
...
Closes #3335
Closes #3624
2015-08-19 01:34:46 +00:00
Brian Ford
b5c4d8ba79
feat(facade): add maximum method for ListWrapper
2015-08-19 01:34:45 +00:00
Brian Ford
5c95b376b5
fix(router): subscribe should return subscription
...
Closes #3491
Closes #3695
2015-08-19 01:34:08 +00:00
gdi2290
f2d3bdb801
feat(http): xhr error listener invokes throw on EventEmitter
...
Closes #2667
2015-08-19 01:11:23 +00:00
Victor Berchet
3b9411cbeb
chore: removed a VI tmp file
...
Closes #3706
2015-08-19 00:32:49 +00:00
PatrickJS
16eb8ced58
fix(http/http): allow for commonjs as ngHttp
...
when using the commonjs build for node the module ngHttp can not find module(s) `http/src/http`. currently
Closes #3633
2015-08-19 00:11:22 +00:00
ericmartinezr
63a94ee941
fix(docs) Fixes typo in ProtoViewRef class
...
Changed 'foctary' to 'factory'.
I wanted to change `{@link AppViewManager#createViewInContainer}` to `{@link AppViewManager#createViewInContainer}#createViewInContainer` and `{@link AppViewManager#createRootHostView}` to `{@link AppViewManager#createRootHostView}#createRootHostView` for readibility (see https://angular.io/docs/js/latest/api/core/ProtoViewRef-class.html it shows `AppViewManager and AppViewManager`). But I'm not sure if that'll work so I'm just going with the typo.
Closes #3677
2015-08-18 23:57:32 +00:00
Yegor Jbanov
ddcfd465ad
fix: <template> tag for browsers that do not suppor them
...
Closes #3636
2015-08-18 23:52:28 +00:00
Marc Laval
3b4965279c
feat(browser): support Edge
...
Closes #3667
2015-08-18 23:07:59 +00:00
Ian Riley
675cb87c76
fix(examples): Modifies web worker examples to be compatible with systemjs 0.18.10.
...
Adds the rx path to each respective web worker loader.
Closes #3630
2015-08-18 21:45:12 +00:00
Ian Riley
8a7a783ff2
chore(build): Modifies replace scripts to reflect new changes in systemjs.
2015-08-18 21:45:12 +00:00
Ian Riley
e68c978202
chore(npm): Upgrades systemjs to 0.18.3.
2015-08-18 21:45:12 +00:00
Rado Kirov
272ad61ab1
fix(injectors): reset the construction counter in dynamic strategy.
...
Adds tests for hydrate / dehydrate in cycle.
Closes #3635
2015-08-18 21:03:20 +00:00
yjbanov
5f7d4faa88
fix(docs): export bootstrap in core.ts but not in core.dart
2015-08-18 13:32:43 -07:00
gdi2290
235dec26fc
fix(browser_adapter.ts): baseElement.getAttribute
...
currently throwing an error
```error
Error during instantiation of LocationStrategy! (RouterLink -> Router
-> Location -> LocationStrategy).
ORIGINAL ERROR: TypeError: baseElement.attr is not a function
```
Closes #3214
2015-08-18 19:07:47 +00:00
vsavkin
52da220016
feat(change_detection): added an example demonstrating how to use observable models
...
Closes #3684
2015-08-18 19:00:04 +00:00
vsavkin
cbfc9cb344
feat(change_detection): added an experimental support for observables
2015-08-18 19:00:04 +00:00
Daniel Rasmuson
ed81cb94b0
feat(router): user metadata in route configs
...
Provide the ability to attach custom data onto a route and retrieve
that data as an injectable (RouteData) inside the component.
Closes #2777
Closes #3541
2015-08-18 10:33:19 -07:00
Victor Berchet
1f54e64fcf
feat(PropertyBindingParser): support onbubble-event as an alternate syntax for (^event)
...
fixes #3448
Closes #3616
2015-08-18 17:30:48 +00:00
Misko Hevery
ea6673947c
refactor: rename annotations to metadata
...
BREAKING CHANGE (maybe)
Well as long as our customers use public API this should not be a
breaking change, but we have changed import structure as well as
internal names, so it could be breaking.
import:
angular2/annotations => angular2/metadata
Classes:
*Annotations => *Metadata
renderer.DirectiveMetadata => renderer.RendererDirectiveMetadata
renderer.ElementBinder => renderer.RendererElementBinder
impl.Directive => impl.DirectiveMetadata
impl.Component => impl.ComponentMetadata
impl.View => impl.ViewMetadata
Closes #3660
2015-08-17 21:23:25 +00:00
vsavkin
5e6317fecc
feat(change_detection): request a change detection check when an event happens
...
Closes #3679
2015-08-17 19:08:03 +00:00
vsavkin
823fa4689e
refactor(change_detection): generate handleEvent only when necessary
2015-08-17 19:08:03 +00:00
Rado Kirov
6c9e712c34
fix(query): do not visit dehydrated injectors.
2015-08-17 11:43:44 -07:00
vsavkin
4845583dcf
refactor(change_detector): made change detection responsible for processing events
...
Closes #3666
2015-08-17 15:39:00 +00:00
Isaac Park
8b655c7be3
docs(annotations): replaces old syntax for hostListeners with host
...
Closes #3672
2015-08-17 14:38:18 +02:00
Pascal Precht
a06f48e357
test(query_integration): remove duplicated change detection call
...
Closes #3673
2015-08-17 09:22:10 +00:00
Michael Goderbauer
841206c678
fix(testability): properly throw when no testability available
2015-08-15 19:44:58 -07:00
Jason Teplitz
296851797b
fix(WebWorkers): Run XHR requests on the UI
...
Fixes issues in dart where dart:html is not available in isolates and
allows for better profiling of XHR requests
Closes #3652
2015-08-15 21:54:51 +00:00
Victor Berchet
ee5df00146
refactor(directives): minor cleanup & refactoring
...
Closes #3629
2015-08-15 17:19:15 +00:00
Victor Berchet
89a0f2457d
doc(di): minor fixes
...
Closes #3614
2015-08-15 16:06:01 +00:00
Brian Ford
26d2ea8afc
fix(router): fix regression with generating links to async routes
...
Closes #3650
2015-08-14 22:32:48 +00:00
Rado Kirov
2686316c90
test(query): adds a view query test in presence of a long ng-for.
...
Closes #3638
Closes #3649
2015-08-14 21:04:29 +00:00
Pawel Kozlowski
83b69e8edc
chore: add repository field to npm package.json files
...
Fixes #2366
Closes #3621
2015-08-14 18:09:52 +00:00
gdi2290
35a83b495a
feat(query_list): delegate `toString` to `_results` array
...
Closes #3004
2015-08-14 03:42:11 +00:00
Victor Berchet
2fcb4cb769
test(Router): increase the timeout for the back button test
...
The test would fail on Ubuntu 15.04 + Chrome 46 with the standard
timeout.
2015-08-13 17:50:16 -07:00
vsavkin
da4bcd5d91
docs: removed outdated docs
...
Closes #3581
2015-08-13 21:18:31 +00:00
Misko Hevery
512340e39b
chore: Remove IRequestOptions / IResponseOptions
...
BREAKING CHANGE:
Reasons:
1) Interfaces should not start with letter ‘I’
2) Interfaces do not help with mistype properties, but literal types do.
- https://github.com/Microsoft/TypeScript/pull/3823
- https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#strict-object-literal-assignment-checking
2015-08-13 21:18:31 +00:00
Misko Hevery
284dc67076
chore: disable dart for HTTP package
...
BREAKING CHANGE
Stop supporting http module in Dart. This is because Dart has a
well developed http package which should be used by Dart
customers instead.
2015-08-13 21:18:31 +00:00
Misko Hevery
38945955ab
refactor: Remove IQueryList
...
BREAKING CHANGE:
Closes #3577
2015-08-13 21:18:31 +00:00
Misko Hevery
b7837389d7
refactor: Remove isDart from public API
...
BREAKING CHANGE:
- `IS_DARTIUM` no longer exported
2015-08-13 21:18:31 +00:00
Misko Hevery
5c328adb4b
refactor(di): Visibility.(Private|Public|PublicAndPrivate)
...
BREAKING CHANGE:
Rename:
- `PRIVATE` => `Visibility.Private`
- `PUBLIC` => `Visibility.Public`
- `PUBLIC_AND_PRIVATE` => `Visibility.PublicAndPrivate`
2015-08-13 21:18:31 +00:00
Misko Hevery
60af19f0e1
refactor: rename all const to UPPER_CASE
...
Closes #3573
BREAKING CHANGE
Rename:
- `appComponentTypeToken` => `APP_COMPONENT`
- `coreDirectives` => `CORE_DIRECTIVES`
- `formDirectives` => `FORM_DIRECTIVES`
- `formInjectables` => `FORM_BINDINGS`
- `httpInjectables` => `HTTP_BINDINGS`
- `jsonpInjectables` => `JSONP_BINDINGS`
- `PROTO_CHANGE_DETECTOR_KEY` => `PROTO_CHANGE_DETECTOR`
- `appComponentRefPromiseToken` => `APP_COMPONENT_REF_PROMISE`
- `appComponentTypeToken` => `APP_COMPONENT`
- `undefinedValue` => `UNDEFINED`
- `formDirectives` => `FORM_DIRECTIVES`
- `DOCUMENT_TOKEN` => `DOCUMENT`
- `APP_ID_TOKEN` => `APP_ID`
- `MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE_TOKEN` => `MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE`
- `appBaseHrefToken` => `APP_BASE_HREF`
2015-08-13 21:18:31 +00:00
Ted Sander
1d65b38b28
feat(test): find testabilities across dart js applications
...
Find angular testability objects across different dart js contexts by
registering each application in a global array and interrogating each
for testabilities.
Closes #3611
2015-08-13 11:25:14 -07:00
Miško Hevery
64ebf278c0
fix: improper use package name in facade
...
Closes #3613
2015-08-13 05:04:00 +00:00
vsavkin
416fd085b1
refactor(pipes): removed BasePipeTrasnform
...
Closes #3608
2015-08-13 01:39:21 +00:00
vsavkin
839edaa15b
feat(pipes): changed PipeTransform to make onDestroy optional
...
BREAKING CHANGE:
Before:
Angular called onDestroy on all pipes.
After:
Angular calls onDestroy only on pipes that have the onDestroy method.
2015-08-13 01:39:21 +00:00
Tim Blasi
aa480fee72
feat(dart/transform): Support `part` directives
...
Allow users to split libraries using the `part` directive.
Closes #1817
2015-08-13 00:28:42 +00:00
Caitlin Potter
b6ee20846b
fix(benchmarks): remove reference to String.prototype.contains()
...
https://github.com/tc39/tc39-notes/blob/master/es6/2014-11/nov-18.md#51--44-arrayprototypecontains-and-stringprototypecontains
removed String.prototype.contains() from standard, and is not
implemented in most runtimes (SpiderMonkey still being an exception).
Closes #3570
2015-08-12 23:16:57 +00:00
Jeff Cross
b5fb05b735
feat(npm): add typescript block to package.json
...
This makes it simple to run the `tsd link` command in a project
to automatically include paths to typings files. The definitions
also include transitive dependencies of rx.d.ts and es6-promise.d.ts.
Closes #3590
Closes #3609
2015-08-12 22:05:41 +00:00
Michael Goderbauer
8f5360c387
feat(testability): option to disable tree walking
2015-08-12 21:56:24 +00:00
Pawel Kozlowski
ed25a29cc8
fix(NgClass): take initial classes into account during cleanup
...
Closes #3557
2015-08-12 20:08:03 +00:00
Pawel Kozlowski
a7a1851c0f
feat(compiler): allow binding to className using class alias
...
Closes #2364
2015-08-12 20:08:03 +00:00
Miško Hevery
f2f4b905e5
fix(docs): ng-non-bindable
...
Closes #3607
2015-08-12 19:00:51 +00:00
Michael Goderbauer
08dbe87819
fix(testability): throw if no testability available
...
this implements the same behavior for dart that is already implemented in the typescript version
2015-08-12 10:21:32 -07:00
Pawel Kozlowski
218b037d98
test(NgClass): remove code duplication in tests
2015-08-12 10:29:37 +02:00
Rado Kirov
2150a8f9d1
feat(query): view query is properly updated when dom changes.
...
Fixes a bug in view manager util where sibling injector is not correctly
calculated.
ViewQuery no longer includes the view's initiating component injector.
Includes some refactoring of view methods and a removal of a polymorphic
map call.
Closes #3033
Closes #3439
2015-08-12 06:16:09 +00:00
Tobias Bosch
585ea5d600
feat(query): allow to query for `TemplateRef`
...
Part of #1989
Closes #3202
2015-08-12 01:51:18 +00:00
vsavkin
5b5d31fa9a
feat(pipe): added the Pipe decorator and the pipe property to View
...
BREAKING CHANGE:
Instead of configuring pipes via a Pipes object, now you can configure them by providing the pipes property to the View decorator.
@Pipe({
name: 'double'
})
class DoublePipe {
transform(value, args) { return value * 2; }
}
@View({
template: '{{ 10 | double}}'
pipes: [DoublePipe]
})
class CustomComponent {}
Closes #3572
2015-08-12 00:38:40 +00:00
Yegor Jbanov
280d8f3148
chore: add dartdoc compliance checks to build
...
Closes #3582
2015-08-11 22:53:08 +00:00
Jeff Cross
5a405011de
refactor(http): move http files to top-level module
...
Closes #2680
Closes #3417
2015-08-11 22:32:17 +00:00
Brian Ford
903a0f0513
fix(router): throw when component in route config is not defined
...
Close #3265
Closes #3569
2015-08-11 21:21:32 +00:00
Caitlin Potter
77d3668432
feat(http): serialize search parameters from request options
...
- Extends URLSearchParams API to include operations for combining
different URLSearchParams objects:
These new methods include:
setAll(otherParams): performs `this.set(key, values[0])` for each
key/value-list pair in `otherParams`
appendAll(otherParams): performs `this.append(key, values)` for
each key/value-list pair in `otherParams`
replaceAll(otherParams): for each key/value-list pair in
`otherParams`, replaces current set of values for `key` with
a copy of the list of values.
- RequestOptions do not merge search params automatically (because
there are multiple ways to do this). Instead, they replace any
existing `search` field if `search` is provided. Explicit merging
is required if merging is desirable.
- Some extra test coverage added.
Closes #2417
Closes #3020
2015-08-10 16:29:36 -07:00
Jeff Cross
dfa5103b1d
feat(typings): allow defining custom namespace for bundle
...
Allows declaring a bundle's namespace in generated typings file,
which should correspond to the global object representing the module
inside its bundle.
BREAKING CHANGE
The router was previously exported as ng.router in the
angular.sfx.dev.js bundle, but now it is exported as ngRouter.
Closes #2948
Closes #3544
2015-08-10 12:59:35 -07:00
Pawel Kozlowski
6bd95c1455
feat(coreDirectives): add NgClass to coreDirectives
...
Closes #3534
2015-08-10 19:52:10 +00:00
Pawel Kozlowski
4f5e405676
fix(UrlResolver): encode URLs before resolving
...
This commits makes JS implementation to behave like Dart one.
Fixes #3543
Closes #3545
2015-08-10 19:50:10 +00:00
Ted Sander
86eb46af09
fix(transformers): be more specific in the imports to rewrite
...
Instead of just matching on the filename match on the full uri.
Closes #3473
Closes #3523
2015-08-10 19:07:48 +00:00