2180 Commits

Author SHA1 Message Date
vsavkin
50548fb565 fix(forms): use strict runtimeType checks instead of instanceof
Currently, validators extending built-in validators are treated as built-in.
This can result in an error when both a real built-in validator and a custom one are applied to the same element.

Closes 
2016-02-10 09:23:59 -08:00
vsavkin
8f47aa3530 fix(forms): add RadioButtonValueAccessor to the list of default value accessors 2016-02-09 15:28:08 -08:00
Brandon Roberts
df7885c9f5 fix(router): Added route data to normalized async route
Closes 
2016-02-09 22:08:45 +00:00
Kara Erickson
0f10624b08 fix(ngFor): update view locals if identity changes
Closes 
2016-02-09 22:06:06 +00:00
David Reher
6f1ef33e32 fix(router): fix url path for star segment in path recognizer
Url path of star segments should equal the original path.

If you register the route `/app/*location` and invoke a url like `/app/foo/bar`
the PathRecognizer should return a url path equal to the invoked url.

Before this patch, everything after `foo` was ignored, which resulted in a
redirect to `/app/foo` which was probably not intended (at least in the angular
1.5 component router).

Closes 
2016-02-09 21:45:06 +00:00
vsavkin
231773ea76 fix(compiler): use event names for matching directives
Closes 
2016-02-09 13:16:08 -08:00
vsavkin
e725542703 fix(forms): add support for radio buttons
Closes 
2016-02-09 19:47:50 +00:00
Andrei Alecu
7e0f02f96e fix(upgrade): fix infinite $rootScope.$digest()
Fixes 
Closes 
2016-02-08 17:18:52 -08:00
Justin DuJardin
e7ad03cba6 fix(core): add detail to dehydrated detector exception
- at least I know what component is causing the error with this. without it the exception is so generic that it's not useful.

Closes 
2016-02-08 17:17:37 -08:00
Sam Julien
74be3d3fde fix(core): mute mode printing in console in prod mode
Closes 
2016-02-08 17:16:19 -08:00
jennyraj
a15ca23469 refactor(mock): update variable names in directive_resolver_mock.ts
Closes 
2016-02-08 17:11:43 -08:00
Tobias Bosch
de77700da0 fix(di): throw if a token uses more than 20 dependencies.
Fixes 
Closes 
2016-02-08 16:21:57 -08:00
Alexander Bachmann
c6036435f0 fix(router): don't prepend / unnecessarily to Location paths
Closes 
Closes 
2016-02-08 16:18:13 -08:00
Kathy Walrath
a26053d3ff docs(cheatsheet): fix Dart cheatsheet
Also deletes an extraneous period from the JS cheatsheet.

Closes 
2016-02-08 15:58:22 -08:00
Mike Ryan
24d5b665e1 docs(HostBindingMetadata): Removed brackets from host bindings in HostBindingsMetadata example
Closes 
2016-02-08 15:55:49 -08:00
Prayag Verma
aa98fad338 docs: fix typo in 01_templates.md
Replace `an` with `a`

Closes 
2016-02-08 15:52:30 -08:00
Federico Caselli
9cb6dbbbab docs: fixed typo in documentation
Closes 
2016-02-08 15:30:15 -08:00
Brandon Roberts
e21718faa9 docs(router): Updated inconsistencies in router docs
Closes 
2016-02-08 22:31:04 +00:00
Igor Minar
b86829f492 revert: feat(transformers): collect information about di dependencies and providers
This reverts commit 86c40f84741c184123f6e96c87d932e4804e7add.

Reason: new issues were discovered during the g3sync. @vsavkin is working on fixing them.
2016-02-08 12:15:03 -08:00
vsavkin
86c40f8474 feat(transformers): collect information about di dependencies and providers 2016-02-05 21:56:33 +00:00
Alex Eagle
2a70f4e4c7 fix(typings): Don't expose typing dependencies to users.
This resolves Duplicate Identifier issues seen by many users,
at the expense of more typings installation required in some
cases.

Removes the quickstart hack of placing all needed dependencies
typings files in our distribution. Removes dependencies on
nodejs from angular2/core.

Fixes 
Fixes 
Fixes 

Angular now depends on es6-promise and es6-collections
(and a handful of manual typings) rather than all of es6-shim.

Fixes 

We previously had an undocumented breaking change, this is now
documented in this commit.

Fixes 

BREAKING CHANGE:

Transitive typings are no longer included in the distribution.
You may need to install typings in your project using
http://github.com/typings/typings

Users now must rely on getting typings from:
- one of the peerDependencies, such as rxjs, which exposes
  typings via the moduleResolution=node mechanism.
  (see https://github.com/Microsoft/TypeScript/wiki/Typings-for-npm-packages)
  This happens automatically.
- Using --target ES5 now requires manual installation of
  es6-promise and es6-collections typings.
- Using some angular APIs may introduce a dependency on eg. nodejs
  or jasmine, and those typings need manual installation as well.

Closes 
2016-02-04 22:42:40 +00:00
Alex Eagle
2f31c4c1c5 chore(typings): use mainline DefinitelyTyped repo rather than a fork.
The upstream Jasmine typings don't define a type for the global
object with Jasmine methods polluting it, so just use any.

Also zone.js has a different name upstream.
2016-02-04 22:42:40 +00:00
Wesley Cho
9b0e10e9a7 fix(compiler): fix interpolation regexp
- Fix the interpolation regexp to match newline characters (i.e. `\n` and `\r`)

Closes 
2016-02-03 15:21:55 +00:00
Brian Yarger
995a9e0cf8 fix(router): fix incorrect url param value coercion of 1 to true
seriliazeParams is coercing a value of 1 to true, which causes the value to be completey dropped.
Change the test from double equals to triple equals to prevent this from happening.

Closes 

Closes 
2016-02-03 15:00:24 +00:00
gdi2290
b55f1764b5 fix(Headers): serializable toJSON
fixes 

Closes 
2016-02-03 14:03:01 +00:00
Scott Hatcher
5e9daed2e8 docs(http.ts): Fix MockBackend examples using backend.connections observer
Properly format observer examples.
2016-02-03 05:58:40 -08:00
Christoph Guttandin
aa8c5aa2e2 docs(http): fix example usage of MockBackend 2016-02-03 05:57:08 -08:00
Jeff Cross
f2c7946cca chore(http): make all typings explicit 2016-02-03 05:31:40 -08:00
Bryce Johnson
dbeff6f548 style(ReflectionCapabilities) _zipTypesAndAnnotations, not _zipTypesAndAnnotaions
I was stepping through the Reflector and came across this little guy.

Closes 
2016-02-03 03:57:06 +00:00
Rob Wormald
26e60d658a fix(async): handle synchronous initial value in async pipe
Closes 
2016-02-03 03:56:52 +00:00
ericmartinezr
c2ceb7fba4 fix(Validators): fix Validators.required marking number zero as invalid
Closes 
2016-02-03 03:34:42 +00:00
Shuhei Kagawa
4bfe49cd42 docs(core): update QueryList's onChange to changes.subscribe 2016-02-02 19:23:03 -08:00
Kara Erickson
cee2318110 feat(ngFor): add custom trackBy function support
Make it possible to track items in iterables in custom ways (e.g. by ID or index), rather than simply by identity.

Closes 
2016-02-03 01:03:31 +00:00
Pascal Precht
99e6500a2d feat(upgrade): support bindToController with binding definitions
Since angular 1.4 we can also pass controller bindings directly to bindToController, making this syntax more convenient

Closes 
2016-02-02 13:27:22 -08:00
Josh Olson
5c782d6ba8 Typo: Hash_consing wiki link wrong Markdown syntax 2016-02-02 11:53:30 -08:00
Brandon Roberts
4e43d6f769 docs(http): Added base request options for test example 2016-02-02 11:51:42 -08:00
Felix Itzenplitz
3529ee9973 docs(cheatsheet): change as to name in routing section 2016-02-02 11:43:29 -08:00
BeastCode
29aa6a6c1c change event to use camel case 2016-02-02 11:42:26 -08:00
Hongbo Miao
e480b0798e docs: Kebab-case does not work. Change to camelCase.
Closes 
2016-02-01 15:15:46 -08:00
Misko Hevery
321193889f fix(zone): correct incorrect calls to zone 2016-02-01 21:53:42 +00:00
Julie Ralph
a78dcfa5f3 chore(tests): fix broken linker integration test and fix DebugNode export
Fixes two small issues introduced with pr 
2016-01-29 14:29:49 -08:00
Julie Ralph
e1bf3d33f8 feat(debug): replace DebugElement with new Debug DOM
Now, using `ng.probe(element)` in the browser console returns
a DebugElement when in dev mode.

`ComponentFixture#debugElement` also returns a new DebugElement.

Breaking Change:

This is a breaking change for unit tests. The API for the DebugElement
has changed. Now, there is a DebugElement or DebugNode for every node
in the DOM, not only nodes with an ElementRef. `componentViewChildren` is
removed, and `childNodes` is a list of ElementNodes corresponding to every
child in the DOM. `query` no longer takes a scope parameter, since
the entire rendered DOM is included in the `childNodes`.

Before:

```
componentFixture.debugElement.componentViewChildren[0];
```

After
```
// Depending on the DOM structure of your component, the
// index may have changed or the first component child
// may be a sub-child.
componentFixture.debugElement.children[0];
```

Before:

```
debugElement.query(By.css('div'), Scope.all());
```

After:

```
debugElement.query(By.css('div'));
```

Before:

```
componentFixture.debugElement.elementRef;
```

After:

```
componentFixture.elementRef;
```
2016-01-29 11:28:10 -08:00
mlaval
ae7d2ab515 fix(bundle): add angular2/platform/testing/browser to SystemJS testing bundle 2016-01-29 13:58:06 +01:00
Tobias Bosch
c6adbf602c fix(query): don’t cross component boundaries
Closes 
2016-01-28 23:38:40 +00:00
Tobias Bosch
1f7a41c963 fix(query): update view queries that query directives in embedded views
Fixes 
2016-01-28 14:40:53 -08:00
Marc Laval
fc5b128b43 chore(ci): deflake test and turn on saucelabs_required
Fixes 

Closes 
2016-01-28 03:18:08 +00:00
Jason Teplitz
c2a38c05aa fix(WebWorkers): Add support for transitionend events.
Closes 
2016-01-26 21:09:01 -08:00
Jason Teplitz
8bea667a0b feat(WebWorker): Add Router Support for WebWorker Apps
Closes .
2016-01-26 21:07:12 -08:00
vsavkin
42231f5719 feat(change_detection): allow all legal programs in the dev mode
BEFORE:

The following would throw in the dev mode because `f` would return a new array when called by checkNoChanges.

@Component({
  template: `
    {{f()}}
  `
})
class A {
  f() { return [1]; }
}

AFTER:

The checkNoChanges function compares only primitives types for equality, and deeply compares iterables. Other objects cannot cause checkNoChanges to throw. This means that the dev mode would never fail given a legal program, but may allow some illegal programs.
2016-01-26 21:01:19 -08:00
Yegor Jbanov
db87baeb98 fix(ddc): router, compiler, web worker fixes for DDC
Also enable DDC checks across all non-web worker playground apps. We are
now down to 2 DDC errors across all of them. The remaining two need to be
fixed in package:analyzer, not in angular.

BREAKING CHANGE:

- there's a chance of breakage as router's Instruction constructor
  signature changed.

Closes 
2016-01-27 02:30:20 +00:00