-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Conversation
@@ -1,3 +1,971 @@ | |||
<a name="1.6.0-rc.0"></a> | |||
# 1.6.0-rc.0 bracing-vortex (Mon Oct 24 2016) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the different date format was intentional, but I liked the old one better 😁
- **jqLite:** | ||
- implement `jqLite(f)` as alias to `jqLite(document).ready(f)` (369fb7f4f73664bcdab0350701552d8bef6f605e) | ||
- don't throw for elements with missing `getAttribute` (4e6c14dcae4a9a30b3610a288ef8d20db47c4417) | ||
- don't remove a boolean attribute for `.attr(attrName, '')` (3faf4505732758165083c9d21de71fa9b6983f4a) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'
doesn't render as '
inside backticks.
- don't throw for elements with missing `getAttribute` (4e6c14dcae4a9a30b3610a288ef8d20db47c4417) | ||
- don't remove a boolean attribute for `.attr(attrName, '')` (3faf4505732758165083c9d21de71fa9b6983f4a) | ||
- remove the attribute for `.attr(attribute, null)` (4e3624552284d0e725bf6262b2e468cd2c7682fa) | ||
- return `[]` for `.val()` on `<select multiple>` with no selection (d882fde2e532216e7cf424495db1ccb5be1789f8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<
/>
do not render as <
/>
inside backticks.
- **$route:** implement `resolveRedirectTo` (e9865654b39c71be71034c38581a8c7bd16bc716 #5150) | ||
- **input[radio]:** allow `ng-trim` to work for `input[type=radio]` (47724baffe050269385b3481e9a9cf4ab3944b4b) | ||
- **$q:** report promises with non rejection callback (c9dffde1cb167660120753181cb6d01dc1d1b3d0) | ||
- **$location:** default hashPrefix to `'!'` (aa077e81129c740041438688dff2e8d20c3d7b52 #13812) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'
--> '
(Does changez
converts '
to '
?)
- **$animate:** listen for document visibility changes (d71dc2f5afec230711351e9f160873a41eb60597) | ||
- **injector:** cache the results of the native class detection check (5ceb5dbfa6d9b6d15232a1f5c767b2f431325948) | ||
- **$parse:** Inline constants (bd7d5f6345439aa2d1da708ffee20b4c565131d4) | ||
- **$compile:** use strict comparison for `controller === '@'` (bbd3db14f857aab996ad129f2f15ca6348e9fd9f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'
--> '
/* 3 */ | ||
elem.data()['foo-bar'] = 1; | ||
elem.data()['fooBar'] = 2; | ||
elem.data()['foo-bar']; // 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These sections need to be wrapped in triple backticks, because all lines render on the same line.
(Also '
--> '
😁)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the last line should be elem.data('foo-bar'); // 1
/* 3 */ | ||
elem.data()['foo-bar'] = 1; | ||
elem.data()['fooBar'] = 2; | ||
elem.data()['foo-bar']; // 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last line should be elem.data('foo-bar'); // 1
var bgColor = elem.css('background:color'); | ||
var bgColor = elem.css('background-color'); | ||
var bgColor = elem.css('background--color'); | ||
var bgColor = elem.css('backgroundColor'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap in triple backticks. (Here and below.)
@@ -1,3 +1,1038 @@ | |||
<a name="1.6.0-rc.0"></a> | |||
# 1.6.0-rc.0 bracing-vortex (Tue Oct 25 2016) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the date format change intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was easier to do it this way. Does it matter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easier? To be clear I am talking about displaying the date as Tue Oct 25 2016
vs 2016-10-25
.
We've been using the YYYY-MM-DD
format in previous releases. I find it easier to read (especially since Oct 25 2016
is locale-specific - e.g. some (sane 😛) locales put the day before the month) and I guess most people don't care what day of week it was 😛
But it's just a slight preference of mine. Not a biggy. Leaving it up to you.
(But we should stick with the format we choose for future releases.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easier - as in easier for me to write the nunjucks template :-)
OK, I'll fix this.
- JSONP callback must be specified by `jsonpCallbackParam` config ([fb6634](https://github.com/angular/angular.js/commit/fb663418710736161a6b5da49c345e92edf58dcb) [#15161](https://github.com/angular/angular.js/issues/15161) [#11352](https://github.com/angular/angular.js/issues/11352)) | ||
- JSONP requests now require a trusted resource URL ([6476af](https://github.com/angular/angular.js/commit/6476af83cd0418c84e034a955b12a842794385c4) [#11352](https://github.com/angular/angular.js/issues/11352)) | ||
- **ngModelOptions:** allow options to be inherited from ancestor `ngModelOptions` ([87a2ff](https://github.com/angular/angular.js/commit/87a2ff76af5d0a9268d8eb84db5755077d27c84c) [#10922](https://github.com/angular/angular.js/issues/10922)) | ||
- **input:** add support for binding to `input[type=range]` (#14870) ([913016](https://github.com/angular/angular.js/commit/9130166767c4792c5d32d08a918fc7becf32c9a6) [#5892](https://github.com/angular/angular.js/issues/5892)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make #14870
a link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
/* 3 */ | ||
elem.data()['foo-bar'] = 1; | ||
elem.data()['fooBar'] = 2; | ||
elem.data()['foo-bar']; // 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be elem.data('foo-bar')
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I fixed this already...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I only fixed the "after" version
- **feat(jqLite): remove the attribute for `.attr(attribute, null)` ([4e3624](https://github.com/angular/angular.js/commit/4e3624552284d0e725bf6262b2e468cd2c7682fa))**: | ||
|
||
Invoking `elem.attr(attributeName, null)` would set the | ||
`attributeName` atribute value to a string `"null"`, now it removes the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"
--> "
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right! I had a problem with nunjucks escaping stuff. The tool is fixed but I manually updated this file and didn't catch them all.
After: | ||
|
||
``` | ||
elem.attr(attributeName, "null"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"
--> "
or is being run on browsers that do not support HTML5 mode, and you have | ||
not specified your own hash-prefix then client side URLs will now contain | ||
a "!" prefix. For example, rather than `mydomain.com/#/a/b/c` will become | ||
`mydomain/#!/a/b/c`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mydomain --> mydomain.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Due to the way that `input[type=range]` elements behave this feature modifies the behavior of such elements | ||
when bound to `ngModel`: | ||
|
||
- Like input[number], it requires the model to be a Number, and will set the model to a Number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input[number] --> input[number]
(or else [number]
is interpreted as link)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
that prompts the browser to update the input value. | ||
- ngMin / ngMax do not prompt the browser to update the values, as they don't set the attribute values. | ||
Instead, they will set the min / max errors when appropriate | ||
- browsers that do not support input[range] (IE9) handle the input like a number input (with validation etc.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input[range] --> input[range]
(or else [number]
is interpreted as link)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
when bound to `ngModel`: | ||
|
||
- Like input[number], it requires the model to be a Number, and will set the model to a Number | ||
- it supports setting the min/max values via the min/max and ngMin/ngMax attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we don't support ngMin/Max
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
ngModel directive is initialized. | ||
- this behavior is supported when the model changes and when the min/max attributes change in a way | ||
that prompts the browser to update the input value. | ||
- ngMin / ngMax do not prompt the browser to update the values, as they don't set the attribute values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we don't support ngMin/Max
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Please read the [Sandbox Removal Blog Post](http://angularjs.blogspot.com/2016/09/angular-16-expression-sandbox-removal.html). | ||
|
||
## Bug Fixes | ||
- **input:** fix `step` validation for `input[number]`/`input[type=range]` ([081d06](https://github.com/angular/angular.js/commit/081d06ffd15c2c6c539ce97b5eb63fa8e2403818) [#15257](https://github.com/angular/angular.js/issues/15257)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you are changing input[xyz]
to input[type=xyz]
: You missed one here (input[number]
) 😃
|
||
## Breaking Changes | ||
|
||
- **fix(jqLite): camelCase keys in `jqLite#data` ([fc0c11](https://github.com/angular/angular.js/commit/fc0c11db845d53061430b7f05e773dcb3fb5b860))**: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the previous format more clear (e.g. it is easier to spot what service/directive/... the BC is about), but I am fine either way. We should just decide what our format is and stick to it for future releases.
@@ -1,3 +1,1038 @@ | |||
<a name="1.6.0-rc.0"></a> | |||
# 1.6.0-rc.0 bracing-vortex (Tue Oct 25 2016) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easier? To be clear I am talking about displaying the date as Tue Oct 25 2016
vs 2016-10-25
.
We've been using the YYYY-MM-DD
format in previous releases. I find it easier to read (especially since Oct 25 2016
is locale-specific - e.g. some (sane 😛) locales put the day before the month) and I guess most people don't care what day of week it was 😛
But it's just a slight preference of mine. Not a biggy. Leaving it up to you.
(But we should stick with the format we choose for future releases.)
9ee4648
to
3c88c62
Compare
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change?
Please check if the PR fulfills these requirements
Other information: