Tag: v1.5.6
-
-
style(src/Angular.js): make comment formatting consistent
Corrected formatting errors on lines 258, 695, 696, 1096, 1219, 1451, and 1536 by adding periods at the end of single line comments that were missing them in order to be consistent with the formatting found in the file. Capitalized the first letter in the first word of the comments on lines 695, 696, 1096, to be consistent with the formatting of the rest of the file. Added a space after the // in the comment on line 1536 to be consistent with the formatting of the file.
-
-
perf($rootScope): make queues more efficient
By using a pointer to the current start of the queue and only clearing up the queue storage later, we save lots of time that was spent manipulating arrays with `slice` Closes #14545
-
docs(ngAnimate): remove unnecessary transition prefixes
We can remove the vendor-prefixing from our docs, since all major browsers support these properties, without prefixes. Closes #14586
-
-
refactor(*): faster check for a string starting with a substring
Thanks to @spamdaemon for the original PR to make this improvement. In naive tests on Chrome I got the following results: ``` Matches Misses indexOf 33ms 1494ms lastIndexOf 11ms 11ms ``` Closes #3711
-
docs(tutorial): update to use `v1.5.x` and best practices
This is a major re-structuring of the tutorial app's codebase, aiming at applying established best practices (in terms of file naming/layout and code organization) and utilizing several new features and enhancements (most notably components) introduced in recent versions of Angular (especially v1.5). Apart from the overall changes, two new chapters were introduced: one on components and one on code organization. -- In the process, several other things were (incidentally) taken care of, including: * Dependencies were upgraded to latest versions. * Animations were polished. * Outdated links were updated. * The app's base URL was changed to `/` (instead of `/app/`). BTW, this has been tested with the following versions of Node (on Windows 10) and everything worked fine: * 0.11.16 * 4.2.6 * 4.4.2 * 5.10.0 * 6.2.0 -- This was inspired by (and loosely based on) #13834. Again, mad props to @teropa for leading the way :) -- **Note:** The old version of the tutorial, that is compatible with Angular version 1.4 or older, has been saved on the `pre-v1.5.0-snapshot` branch of [angular-phonecat](https://github.com/angular/angular-phonecat). The `v1.4.x` version of the tutorial should be pointed to that branch instead of `master`. -- Related to angular/angular-phonecat#326. Related to angular/angular-seed#341. Closes #14416
-
perf(ngClass): improve even-odd checking
This now uses the same technique as ngRepeat.
-
-
docs(guide/Conceptual Overview): clarify service instantiation explan…
…ation Change a sentence which describes how currencyConverter service is instantiated
-
-
-
docs(error/$compile): add `reqslot` error description
Explains what could generate a `reqslot` error. Closes #14618
-
-
fix(ngMessagesInclude): do not compile template if scope is destroyed
Messages imported with `ngMessagesInclude` are loaded asynchronously and they can arrive after the ngMessages element has already been removed from DOM. Previously we tried to compile these messages and that caused a `$compile:ctreq` error. Now they are silently ignored if `ngMessagesInclude`'s scope has already been destroyed. Closes #12695 Closes #14640
-
docs(contributing): fix the styleguide link
Update the link to Google's JavaScript style guide to the updated version Closes #14652
-
fix($animate): don't break on anchored animations without duration
If the `from` element of an animation does not actually have an animation then there will be no animation runner on that element. This is possible if the element has the `ng-animate-ref` attribute but does not have any CSS animations or transitions defined. In this case, it is not necessary to try to update the host of the non-existent runner. Fixes #14641 Closes #14645
-
docs(ngMock/$exceptionHandler): fix formatting
Too much indentation, made text get formatted as code block.
-
fix($brower): set the url even if the browser transforms it
While $location expects that $browser stores the URL unchanged, "some browsers" transform the URL when setting or defer the acutal update. To work around this, $browser.url() kept the unchanged URL in pendingLocation. However, it failed to update pendingLocation in all code paths, causing $browser.url() to sometimes incorrectly report previous URLs, which horribly confused $location. This fix ensures that pendingLocation is always updated if set, causing url() to report the current url. Fixes #14427 Closes #14499