Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
base repository: angular/angular.js
Choose a Base Repository
angular/angular.js
Anuj16/angular.js
ArslanRafique/angular.js
DeborahK/angular.js
EpokK/angular.js
HaoWu/angular.js
IgorMinar/angular.js
JKLFA/angular.js
KAUG/angular.js
Kaic-zz/angular.js
Metric7/angular.js
MikhailTatsky/angular.js
NAzT/angular.js
Narretz/angular.js
Partoo/angular.js
PeterBoesenberg/angular.js
PoshHsu/angular.js
ScxFiction/angular.js
SeanMBe/angular.js
Sharique-Hasan/angular.js
Shipow/angular.js
SjB/angular.js
Sophrinix/angular.js
SumitMunot/angular.js
TEHEK/angular.js
abhisec/angular.js
abnerlinan/angular.js
abrons/angular.js
acosme/angular.js
adam-singer/angular.js
addyosmani/angular.js
agborkowski/angular.js
ajperrins/angular.js
alexeagle/angular.js
alxross/angular.js
aminerahmouni/angular.js
amirhhz/angular.js
angeliaz/angular.js
angularjs-jp/angular.js
anjo/angular.js
arantius/angular.js
ardnet2/angular.js
arsh-co/angular.js
bartes/angular.js
bghanchi/angular.js
blinkbox/angular.js
blueslue/angular.js
boltz/angular.js
bolu/angular.js
briceburg/angular.js
brikou/angular.js
btford/angular.js
byplayer/angular.js
ca136/angular.js
calvinhuang/angular.js
cburgdorf/angular.js
chenermeng/angular.js
chris4403/angular.js
cleyshan/angular.js
codeinpeace/angular.js
colinfrei/angular.js
congmo/angular.js
crossbreeze/angular.js
csii/angular.js
cssgist/angular.js
danielfacanha/angular.js
danilopesouza/angular.js
dankrz/angular.js
dashersw/angular.js
dbinit/angular.js
dcu/angular.js
dhl/angular.js
dineshkummarc/angular.js
dolfly/angular.js
dydycloud/angular.js
eburley/angular.js
elfgoh/angular.js
esprehn/angular.js
fergaldoyle/angular.js
fingerskier/angular.js
flamilton/angular.js
fran6co/angular.js
freewind/angular.js
gaboom/angular.js
gijs/angular.js
girikudlur/angular.js
groner/angular.js
gruber76/angular.js
gwoo/angular.js
hackreactor/angular.js
hardikdangar/angular.js
hjoest/angular.js
hkdobrev/angular.js
hoatle/angular.js
huangciyin/angular.js
huangweili/angular.js
huncent/angular.js
hwclass/angular.js
iammerrick/angular.js
ifedotov/angular.js
imaizumi8925/angular.js
imiborbas/angular.js
intelline/angular.js
jajberni/angular.js
jc1arke/angular.js
jeanielight/angular.js
jecons/angular.js
jimrenwick/angular.js
jjp/angular.js
johnlindquist/angular.js
joshkurz/angular.js
jromero75/angular.js
jsonxu/angular.js
kevan/angular.js
kevinelong/angular.js
kinglerzou/angular.js
kkurni/angular.js
kliu/angular.js
kotiya/angular.js
kyuff/angular.js
lamperwang/angular.js
leeight/angular.js
lobsang/angular.js
lrlopez/angular.js
lt1946/angular.js
ludicast/angular.js
lzlf007/angular.js
m13z/angular.js
maciejblinkbox/angular.js
mailtruck/angular.js
manuel-woelker/angular.js
mdolk/angular.js
mernen/angular.js
mgechev/angular.js
mhevery/angular.js
msgilligan/angular.js
nateabele/angular.js
nateflink/angular.js
neolf/angular.js
patcito/angular.js
pdswan/angular.js
petebacondarwin/angular.js
petrovalex/angular.js
phillipkregg/angular.js
phoo/angular.js
pmurias/angular.js
premblinkbox/angular.js
quangv/angular.js
rafa2000/angular.js
rafaalves/angular.js
rahu28/angular.js
recht/angular.js
redg1974/angular.js
ricardohbin/angular.js
rtnpro/angular.js
ruimonteiro84/angular.js
rulers/angular.js
rwaldron/angular.js
sahilmalik5/angular.js
sangam12345/angular.js
santosomar/angular.js
scuxiayiqian/angular.js
shuvozula/angular.js
shyblower/angular-ie7.js
sjhernes/angular.js
snicolai/angular.js
steinjak/angular.js
stephanebisson/angular.js
stevenp-git/angular.js
sum4me/angular.js
suneil/angular.js
supercool27/angular.js
superman-wrdh/angular.js
thegerr09/angular.js
thenyel/angular.js
thughes/angular.js
timothyx/angular.js
timthesinner/angular.js
tleruitte/angular.js
tobyreynold/angular.js
tonitt/angular.js
trochette/angular.js
unirgy/angular.js
vibster/angular.js
vincentferniot/angular.js
vingo/angular.js
virtualSharif/angular.js
vkoroslev/angular.js
vojtajina/angular.js
witkai/angular.js
woodie/angular.js
wuxq/angular.js
xiehekun/angular.js
xrchen/angular.js
yanneves/angular.js
ysiadf/angular.js
yyx990803/angular.js
zfleet/angular.js
zhangruimin/angular.js
ziakina/angular.js
Nothing to show
base: cf1b175508a7
head repository: angular/angular.js
Choose a Head Repository
angular/angular.js
Anuj16/angular.js
ArslanRafique/angular.js
DeborahK/angular.js
EpokK/angular.js
HaoWu/angular.js
IgorMinar/angular.js
JKLFA/angular.js
KAUG/angular.js
Kaic-zz/angular.js
Metric7/angular.js
MikhailTatsky/angular.js
NAzT/angular.js
Narretz/angular.js
Partoo/angular.js
PeterBoesenberg/angular.js
PoshHsu/angular.js
ScxFiction/angular.js
SeanMBe/angular.js
Sharique-Hasan/angular.js
Shipow/angular.js
SjB/angular.js
Sophrinix/angular.js
SumitMunot/angular.js
TEHEK/angular.js
abhisec/angular.js
abnerlinan/angular.js
abrons/angular.js
acosme/angular.js
adam-singer/angular.js
addyosmani/angular.js
agborkowski/angular.js
ajperrins/angular.js
alexeagle/angular.js
alxross/angular.js
aminerahmouni/angular.js
amirhhz/angular.js
angeliaz/angular.js
angularjs-jp/angular.js
anjo/angular.js
arantius/angular.js
ardnet2/angular.js
arsh-co/angular.js
bartes/angular.js
bghanchi/angular.js
blinkbox/angular.js
blueslue/angular.js
boltz/angular.js
bolu/angular.js
briceburg/angular.js
brikou/angular.js
btford/angular.js
byplayer/angular.js
ca136/angular.js
calvinhuang/angular.js
cburgdorf/angular.js
chenermeng/angular.js
chris4403/angular.js
cleyshan/angular.js
codeinpeace/angular.js
colinfrei/angular.js
congmo/angular.js
crossbreeze/angular.js
csii/angular.js
cssgist/angular.js
danielfacanha/angular.js
danilopesouza/angular.js
dankrz/angular.js
dashersw/angular.js
dbinit/angular.js
dcu/angular.js
dhl/angular.js
dineshkummarc/angular.js
dolfly/angular.js
dydycloud/angular.js
eburley/angular.js
elfgoh/angular.js
esprehn/angular.js
fergaldoyle/angular.js
fingerskier/angular.js
flamilton/angular.js
fran6co/angular.js
freewind/angular.js
gaboom/angular.js
gijs/angular.js
girikudlur/angular.js
groner/angular.js
gruber76/angular.js
gwoo/angular.js
hackreactor/angular.js
hardikdangar/angular.js
hjoest/angular.js
hkdobrev/angular.js
hoatle/angular.js
huangciyin/angular.js
huangweili/angular.js
huncent/angular.js
hwclass/angular.js
iammerrick/angular.js
ifedotov/angular.js
imaizumi8925/angular.js
imiborbas/angular.js
intelline/angular.js
jajberni/angular.js
jc1arke/angular.js
jeanielight/angular.js
jecons/angular.js
jimrenwick/angular.js
jjp/angular.js
johnlindquist/angular.js
joshkurz/angular.js
jromero75/angular.js
jsonxu/angular.js
kevan/angular.js
kevinelong/angular.js
kinglerzou/angular.js
kkurni/angular.js
kliu/angular.js
kotiya/angular.js
kyuff/angular.js
lamperwang/angular.js
leeight/angular.js
lobsang/angular.js
lrlopez/angular.js
lt1946/angular.js
ludicast/angular.js
lzlf007/angular.js
m13z/angular.js
maciejblinkbox/angular.js
mailtruck/angular.js
manuel-woelker/angular.js
mdolk/angular.js
mernen/angular.js
mgechev/angular.js
mhevery/angular.js
msgilligan/angular.js
nateabele/angular.js
nateflink/angular.js
neolf/angular.js
patcito/angular.js
pdswan/angular.js
petebacondarwin/angular.js
petrovalex/angular.js
phillipkregg/angular.js
phoo/angular.js
pmurias/angular.js
premblinkbox/angular.js
quangv/angular.js
rafa2000/angular.js
rafaalves/angular.js
rahu28/angular.js
recht/angular.js
redg1974/angular.js
ricardohbin/angular.js
rtnpro/angular.js
ruimonteiro84/angular.js
rulers/angular.js
rwaldron/angular.js
sahilmalik5/angular.js
sangam12345/angular.js
santosomar/angular.js
scuxiayiqian/angular.js
shuvozula/angular.js
shyblower/angular-ie7.js
sjhernes/angular.js
snicolai/angular.js
steinjak/angular.js
stephanebisson/angular.js
stevenp-git/angular.js
sum4me/angular.js
suneil/angular.js
supercool27/angular.js
superman-wrdh/angular.js
thegerr09/angular.js
thenyel/angular.js
thughes/angular.js
timothyx/angular.js
timthesinner/angular.js
tleruitte/angular.js
tobyreynold/angular.js
tonitt/angular.js
trochette/angular.js
unirgy/angular.js
vibster/angular.js
vincentferniot/angular.js
vingo/angular.js
virtualSharif/angular.js
vkoroslev/angular.js
vojtajina/angular.js
witkai/angular.js
woodie/angular.js
wuxq/angular.js
xiehekun/angular.js
xrchen/angular.js
yanneves/angular.js
ysiadf/angular.js
yyx990803/angular.js
zfleet/angular.js
zhangruimin/angular.js
ziakina/angular.js
Nothing to show
compare: 60689afe1cf5
  • 17 commits
  • 145 files changed
  • 0 commit comments
  • 10 contributors
Commits on May 24, 2016
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
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
Commits on May 25, 2016
Closes #14662
Closes #14663
Closes #14664
We can remove the vendor-prefixing from our docs, since all major browsers
support these properties, without prefixes.

Closes #14586
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
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.
Showing with 117,038 additions and 5,994 deletions.
  1. +5 −0 docs/app/assets/css/docs.css
  2. +4 −3 docs/app/src/tutorials.js
  3. +4 −4 docs/config/templates/indexPage.template.html
  4. +20 −41 docs/content/guide/animations.ngdoc
  5. +141 −96 docs/content/tutorial/index.ngdoc
  6. +89 −74 docs/content/tutorial/step_00.ngdoc
  7. +9 −5 docs/content/tutorial/step_01.ngdoc
  8. +171 −114 docs/content/tutorial/step_02.ngdoc
  9. +212 −153 docs/content/tutorial/step_03.ngdoc
  10. +241 −125 docs/content/tutorial/step_04.ngdoc
  11. +103 −212 docs/content/tutorial/step_05.ngdoc
  12. +196 −63 docs/content/tutorial/step_06.ngdoc
  13. +214 −282 docs/content/tutorial/step_07.ngdoc
  14. +63 −143 docs/content/tutorial/step_08.ngdoc
  15. +366 −81 docs/content/tutorial/step_09.ngdoc
  16. +145 −111 docs/content/tutorial/step_10.ngdoc
  17. +106 −223 docs/content/tutorial/step_11.ngdoc
  18. +112 −465 docs/content/tutorial/step_12.ngdoc
  19. +321 −0 docs/content/tutorial/step_13.ngdoc
  20. +564 −0 docs/content/tutorial/step_14.ngdoc
  21. +13 −6 docs/content/tutorial/the_end.ngdoc
  22. BIN docs/img/tutorial/tutorial_00_final.png
  23. BIN docs/img/tutorial/tutorial_02.png
  24. BIN docs/img/tutorial/tutorial_03.png
  25. BIN docs/img/tutorial/tutorial_04.png
  26. BIN docs/img/tutorial/tutorial_05.png
  27. BIN docs/img/tutorial/tutorial_05.pptx
  28. BIN docs/img/tutorial/tutorial_06.png
  29. BIN docs/img/tutorial/tutorial_07_final.png
  30. BIN docs/img/tutorial/tutorial_08-09_final.png
  31. BIN docs/img/tutorial/tutorial_09.png
  32. BIN docs/img/tutorial/tutorial_10-11_final.png
  33. BIN docs/img/tutorial/tutorial_10.png
  34. BIN docs/img/tutorial/tutorial_12.png
  35. BIN docs/img/tutorial/xhr_service_final.png
  36. BIN images/docs/Diagrams.graffle/QuickLook/Preview.pdf
  37. BIN images/docs/Diagrams.graffle/QuickLook/Thumbnail.tiff
  38. +1,076 −1,465 images/docs/Diagrams.graffle/data.plist
  39. +3 −0 images/docs/Diagrams.svg/Canvas_8.svg
  40. +3 −0 images/docs/Diagrams.svg/Canvas_angular___parts.svg
  41. +3 −0 images/docs/Diagrams.svg/Canvas_angular___usage.svg
  42. +3 −0 images/docs/Diagrams.svg/Notes.svg
  43. +3 −0 images/docs/Diagrams.svg/One_Way_Data_Binding.svg
  44. +3 −0 images/docs/Diagrams.svg/RESTful_URL.svg
  45. +3 −0 images/docs/Diagrams.svg/RESTy.svg
  46. +3 −0 images/docs/Diagrams.svg/Two_Way_Data_Binding.svg
  47. BIN images/docs/Diagrams.svg/image1.png
  48. BIN images/docs/Diagrams.svg/image2.png
  49. BIN images/docs/Diagrams.svg/image4.png
  50. BIN images/docs/Diagrams.svg/image8.png
  51. BIN images/docs/Diagrams.svg/image9.png
  52. +14,452 −0 images/docs/Diagrams.vdx
  53. +3 −0 images/docs/guide/about_controller.svg
  54. +3,385 −0 images/docs/guide/about_controller.vdx
  55. +3 −0 images/docs/guide/about_model.svg
  56. +2,141 −0 images/docs/guide/about_model.vdx
  57. +879 −961 images/docs/guide/concepts.graffle/data.plist
  58. +3 −0 images/docs/guide/concepts.svg/Canvas_11.svg
  59. +3 −0 images/docs/guide/concepts.svg/controller.svg
  60. +3 −0 images/docs/guide/concepts.svg/databinding1.svg
  61. +3 −0 images/docs/guide/concepts.svg/databinding2.svg
  62. +3 −0 images/docs/guide/concepts.svg/directive.svg
  63. +3 −0 images/docs/guide/concepts.svg/filter.svg
  64. BIN images/docs/guide/concepts.svg/image4.png
  65. BIN images/docs/guide/concepts.svg/image5.png
  66. +3 −0 images/docs/guide/concepts.svg/injector-module.svg
  67. +3 −0 images/docs/guide/concepts.svg/runtime.svg
  68. +3 −0 images/docs/guide/concepts.svg/scope.svg
  69. +3 −0 images/docs/guide/concepts.svg/startup.svg
  70. +3 −0 images/docs/guide/concepts.svg/view.svg
  71. +13,153 −0 images/docs/guide/concepts.vdx
  72. +3 −0 images/docs/guide/di_sequence.svg
  73. +4,288 −0 images/docs/guide/di_sequence.vdx
  74. +3 −0 images/docs/guide/dom_scope.svg
  75. +4,587 −0 images/docs/guide/dom_scope.vdx
  76. +160 −1,257 images/docs/guide/form_data_flow.graffle
  77. +3 −0 images/docs/guide/form_data_flow.svg
  78. +2,075 −0 images/docs/guide/form_data_flow.vdx
  79. +3 −0 images/docs/guide/hashbang_vs_regular_url.svg
  80. +1,660 −0 images/docs/guide/hashbang_vs_regular_url.vdx
  81. BIN images/docs/guide/simple_scope.svg/image7.png
  82. +3 −0 images/docs/guide/simple_scope.svg/simple_scope.svg
  83. +3,839 −0 images/docs/guide/simple_scope.vdx
  84. +3 −0 images/docs/tutorial/di_sequence.svg
  85. +5,295 −0 images/docs/tutorial/di_sequence.vdx
  86. BIN images/docs/tutorial/simple_scope.svg/image7.png
  87. +3 −0 images/docs/tutorial/simple_scope.svg/simple_scope.svg
  88. +3,634 −0 images/docs/tutorial/simple_scope.vdx
  89. +3 −0 images/docs/tutorial/tutorial_00.svg
  90. +1,496 −0 images/docs/tutorial/tutorial_00.vdx
  91. BIN images/docs/tutorial/tutorial_02.svg/image11.png
  92. +1,352 −0 images/docs/tutorial/tutorial_02.svg/tutorial_02.svg
  93. +4,613 −0 images/docs/tutorial/tutorial_02.vdx
  94. BIN images/docs/tutorial/tutorial_03.svg/image11.png
  95. +1,377 −0 images/docs/tutorial/tutorial_03.svg/tutorial_03.svg
  96. +5,108 −0 images/docs/tutorial/tutorial_03.vdx
  97. +5,356 −0 images/docs/tutorial/tutorial_04.vdx
  98. BIN images/docs/tutorial/{tutorial_03.graffle → tutorial_05.graffle}/QuickLook/Preview.pdf
  99. BIN images/docs/tutorial/{tutorial_03.graffle → tutorial_05.graffle}/QuickLook/Thumbnail.tiff
  100. 0 images/docs/tutorial/{tutorial_03.graffle → tutorial_05.graffle}/data.plist
  101. BIN images/docs/tutorial/{tutorial_03.graffle → tutorial_05.graffle}/image13.png
  102. BIN images/docs/tutorial/tutorial_05.svg/image13.png
  103. +1,569 −0 images/docs/tutorial/tutorial_05.svg/tutorial_05.svg
  104. BIN images/docs/tutorial/{tutorial_04.graffle → tutorial_06.graffle}/QuickLook/Preview.pdf
  105. BIN images/docs/tutorial/{tutorial_04.graffle → tutorial_06.graffle}/QuickLook/Thumbnail.tiff
  106. 0 images/docs/tutorial/{tutorial_04.graffle → tutorial_06.graffle}/data.plist
  107. BIN images/docs/tutorial/{tutorial_04.graffle → tutorial_06.graffle}/image15.png
  108. BIN images/docs/tutorial/tutorial_06.svg/image15.png
  109. +1,625 −0 images/docs/tutorial/tutorial_06.svg/tutorial_06.svg
  110. +5,758 −0 images/docs/tutorial/tutorial_07.vdx
  111. +6,220 −0 images/docs/tutorial/tutorial_08-09.vdx
  112. BIN images/docs/tutorial/{tutorial_07.graffle → tutorial_09.graffle}/QuickLook/Preview.pdf
  113. BIN images/docs/tutorial/{tutorial_07.graffle → tutorial_09.graffle}/QuickLook/Thumbnail.tiff
  114. 0 images/docs/tutorial/{tutorial_07.graffle → tutorial_09.graffle}/data.plist
  115. BIN images/docs/tutorial/{tutorial_07.graffle → tutorial_09.graffle}/image9.png
  116. BIN images/docs/tutorial/tutorial_09.svg/image9.png
  117. +1,727 −0 images/docs/tutorial/tutorial_09.svg/tutorial_09.svg
  118. +6,183 −0 images/docs/tutorial/tutorial_10-11.vdx
  119. BIN images/docs/tutorial/{tutorial_08-09.graffle → tutorial_10.graffle}/QuickLook/Preview.pdf
  120. BIN images/docs/tutorial/{tutorial_08-09.graffle → tutorial_10.graffle}/QuickLook/Thumbnail.tiff
  121. 0 images/docs/tutorial/{tutorial_08-09.graffle → tutorial_10.graffle}/data.plist
  122. BIN images/docs/tutorial/{tutorial_08-09.graffle → tutorial_10.graffle}/image10.png
  123. BIN images/docs/tutorial/tutorial_10.svg/image10.png
  124. +1,706 −0 images/docs/tutorial/tutorial_10.svg/tutorial_10.svg
  125. BIN images/docs/tutorial/{tutorial_10-11.graffle → tutorial_12.graffle}/QuickLook/Preview.pdf
  126. BIN images/docs/tutorial/{tutorial_10-11.graffle → tutorial_12.graffle}/QuickLook/Thumbnail.tiff
  127. 0 images/docs/tutorial/{tutorial_10-11.graffle → tutorial_12.graffle}/data.plist
  128. BIN images/docs/tutorial/{tutorial_10-11.graffle → tutorial_12.graffle}/image10.png
  129. BIN images/docs/tutorial/tutorial_12.svg/image10.png
  130. +1,844 −0 images/docs/tutorial/tutorial_12.svg/tutorial_12.svg
  131. BIN images/docs/tutorial/tutorial_proto.svg/image7.png
  132. +3 −0 images/docs/tutorial/tutorial_proto.svg/tutorial_proto.svg
  133. +3,727 −0 images/docs/tutorial/tutorial_proto.vdx
  134. +3 −0 images/docs/tutorial/xhr_service.svg
  135. +3,381 −0 images/docs/tutorial/xhr_service.vdx
  136. +6 −6 src/Angular.js
  137. +14 −10 src/auto/injector.js
  138. +2 −2 src/jqLite.js
  139. +20 −17 src/ng/location.js
  140. +12 −4 src/ng/rootScope.js
  141. +2 −0 src/ngMock/angular-mocks.js
  142. +36 −29 src/ngRoute/route.js
  143. +1 −1 src/ngSanitize/sanitize.js
  144. +1 −1 src/ngScenario/browserTrigger.js
  145. +86 −40 test/ng/rootScopeSpec.js
@@ -647,6 +647,11 @@ ul.events > li {
padding-top: 50px;
}

.diagram {
margin-bottom: 10px;
margin-top: 30px;
}

@media only screen and (min-width: 769px) and (max-width: 991px) {
.main-body-grid {
margin-top: 160px;
@@ -5,7 +5,8 @@ angular.module('tutorials', [])
'',
'step_00', 'step_01', 'step_02', 'step_03', 'step_04',
'step_05', 'step_06', 'step_07', 'step_08', 'step_09',
'step_10', 'step_11', 'step_12', 'the_end'
'step_10', 'step_11', 'step_12', 'step_13', 'step_14',
'the_end'
];
return {
scope: {},
@@ -43,7 +44,7 @@ angular.module('tutorials', [])
'<a href="http://angular.github.io/angular-phonecat/step-{{step}}/app">Step {{step}} Live Demo</a>.</p>\n' +
'</div>\n' +
'<p>The most important changes are listed below. You can see the full diff on ' +
'<a ng-href="https://github.com/angular/angular-phonecat/compare/step-{{step ? (step - 1): \'0~1\'}}...step-{{step}}" title="See diff on Github">GitHub</a>\n' +
'<a ng-href="https://github.com/angular/angular-phonecat/compare/step-{{step ? (step - 1): \'0~1\'}}...step-{{step}}" title="See diff on Github">GitHub</a>.\n' +
'</p>'
};
});
});
@@ -228,10 +228,10 @@ <h4 class="search-results-group-heading">{{ key }}</h4>
)
</p>
<p>
Code licensed under the
<a href="https://github.com/angular/angular.js/blob/master/LICENSE" target="_blank">The
MIT License</a>. Documentation licensed under <a
href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
Code licensed under
<a href="https://github.com/angular/angular.js/blob/master/LICENSE" target="_blank">The MIT License</a>.
Documentation licensed under
<a href="http://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.
</p>
</div>
</footer>
@@ -12,6 +12,13 @@ triggered, will attempt to perform a CSS Transition, CSS Keyframe Animation or a
placed on the given directive). Animations can be placed using vanilla CSS by following the naming conventions set in place by AngularJS
or with JavaScript code when it's defined as a factory.

<div class="alert alert-info">
Note that we have used non-prefixed CSS transition properties in our examples as the major browsers now support non-prefixed
properties. If you intend to support older browsers or certain mobile browsers then you will need to include prefixed
versions of the transition properties. Take a look at http://caniuse.com/#feat=css-transitions for what browsers require prefixes,
and https://github.com/postcss/autoprefixer for a tool that can automatically generate the prefixes for you.
</div>

Animations are not available unless you include the {@link ngAnimate `ngAnimate` module} as a dependency within your application.

Below is a quick example of animations being enabled for `ngShow` and `ngHide`:
@@ -29,18 +36,17 @@ Below is a quick example of animations being enabled for `ngShow` and `ngHide`:
</file>
<file name="animations.css">
.sample-show-hide {
padding:10px;
border:1px solid black;
background:white;
padding: 10px;
border: 1px solid black;
background: white;
}

.sample-show-hide {
-webkit-transition:all linear 0.5s;
transition:all linear 0.5s;
transition: all linear 0.5s;
}

.sample-show-hide.ng-hide {
opacity:0;
opacity: 0;
}
</file>
</example>
@@ -80,11 +86,8 @@ occur when ngRepeat triggers them:
class
*/
.repeated-item.ng-enter, .repeated-item.ng-move {
-webkit-transition:0.5s linear all;
-moz-transition:0.5s linear all;
-o-transition:0.5s linear all;
transition:0.5s linear all;
opacity:0;
transition: all 0.5s linear;
opacity: 0;
}

/*
@@ -95,7 +98,7 @@ occur when ngRepeat triggers them:
*/
.repeated-item.ng-enter.ng-enter-active,
.repeated-item.ng-move.ng-move-active {
opacity:1;
opacity: 1;
}

/*
@@ -104,35 +107,14 @@ occur when ngRepeat triggers them:
that has the .repeated-item class
*/
.repeated-item.ng-leave {
-webkit-animation:0.5s my_animation;
-moz-animation:0.5s my_animation;
-o-animation:0.5s my_animation;
animation:0.5s my_animation;
animation: 0.5s my_animation;
}

@keyframes my_animation {
from { opacity:1; }
to { opacity:0; }
}

/*
Unfortunately each browser vendor requires
its own definition of keyframe animation code...
*/
@-webkit-keyframes my_animation {
from { opacity:1; }
to { opacity:0; }
}

@-moz-keyframes my_animation {
from { opacity:1; }
to { opacity:0; }
}

@-o-keyframes my_animation {
from { opacity:1; }
to { opacity:0; }
}
```

The same approach to animation can be used using JavaScript code (**jQuery is used within to perform animations**):
@@ -217,10 +199,7 @@ The example below shows how to perform animations during class changes:
</file>
<file name="style.css">
.css-class-add, .css-class-remove {
-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}

.css-class,
@@ -231,7 +210,7 @@ The example below shows how to perform animations during class changes:

.css-class-remove.css-class-remove-active {
font-size:1.0em;
color:black;
color: black;
}
</file>
</example>
@@ -317,8 +296,8 @@ app.config(function($animateProvider) {
```css
/&#42; prefixed with animate- &#42;/
.animate-fade-add.animate-fade-add-active {
transition:1s linear all;
opacity:0;
transition: all 1s linear;
opacity: 0;
}
```

No commit comments for this range

You can’t perform that action at this time.