diff --git a/docs/app/src/tutorials.js b/docs/app/src/tutorials.js index 84ea6171a743..7f3b1c195069 100644 --- a/docs/app/src/tutorials.js +++ b/docs/app/src/tutorials.js @@ -11,8 +11,7 @@ angular.module('tutorials', []) scope: {}, template: '
  • Previous
  • \n' + - '
  • Live Demo
  • \n' + - '
  • Code Diff
  • \n' + + '
  • Code Diff
  • \n' + '
  • Next
  • ', link: function(scope, element, attrs) { var seq = 1 * attrs.docTutorialNav; @@ -38,12 +37,11 @@ angular.module('tutorials', []) '

    \n' + '
    \n' + '

    Reset the workspace to step {{step}}.

    ' + - '

    git checkout -f step-{{step}}

    \n' + - '

    Refresh your browser or check out this step online: '+ - 'Step {{step}} Live Demo.

    \n' + + '

    git checkout -f 1.4-step-{{step}}

    \n' + + '

    Refresh your browser to see the changes.

    \n' + '
    \n' + '

    The most important changes are listed below. You can see the full diff on ' + - 'GitHub\n' + + 'GitHub\n' + '

    ' }; -}); \ No newline at end of file +}); diff --git a/docs/content/tutorial/index.ngdoc b/docs/content/tutorial/index.ngdoc index f96c0a2ad5e0..44803b3eed27 100644 --- a/docs/content/tutorial/index.ngdoc +++ b/docs/content/tutorial/index.ngdoc @@ -5,6 +5,22 @@ # PhoneCat Tutorial App +
    +

    + This version of the tutorial is deprecated and no longer maintained. You can find the most + recent version of the tutorial at https://docs.angularjs.org/tutorial/. +

    +

    + It is recommended to use the latest tutorial version for the following reasons: +

    +

    +
    + A great way to get introduced to AngularJS is to work through this tutorial, which walks you through the construction of an AngularJS web app. The app you will build is a catalog that displays a list of Android devices, lets you filter the list to see only devices that interest you, and then view @@ -73,7 +89,7 @@ Clone the [angular-phonecat repository][angular-phonecat] located at GitHub by r command: ``` -git clone --depth=14 https://github.com/angular/angular-phonecat.git +git clone --depth=14 --branch=1.4-snapshot https://github.com/angular/angular-phonecat.git ``` This command creates the `angular-phonecat` directory in your current directory. @@ -82,6 +98,11 @@ This command creates the `angular-phonecat` directory in your current directory. download much smaller and faster. +
    + The `--branch=1.4-snapshot` option tells Git to pull down the `1.4-snapshot` branch. + The code for this older version of the tutorial is on that branch. +
    + Change your current directory to `angular-phonecat`. ``` diff --git a/docs/content/tutorial/step_00.ngdoc b/docs/content/tutorial/step_00.ngdoc index 1a83fdf5ed2a..9e496c92b958 100644 --- a/docs/content/tutorial/step_00.ngdoc +++ b/docs/content/tutorial/step_00.ngdoc @@ -16,7 +16,7 @@ dependencies, as described in {@link index#get-started Get Started}. In the `angular-phonecat` directory, run this command: ``` -git checkout -f step-0 +git checkout -f 1.4-step-0 ```