X Tutup
angular.module('tutorials', []) .directive('docTutorialNav', function() { var pages = [ '', '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' ]; return { scope: {}, template: '
  • Previous
  • \n' + '
  • Live Demo
  • \n' + '
  • Code Diff
  • \n' + '
  • Next
  • ', link: function(scope, element, attrs) { var seq = 1 * attrs.docTutorialNav; scope.seq = seq; scope.prev = pages[seq]; scope.next = pages[2 + seq]; scope.diffLo = seq ? (seq - 1): '0~1'; scope.diffHi = seq; element.addClass('btn-group'); element.addClass('tutorial-nav'); } }; }) .directive('docTutorialReset', function() { return { scope: { 'step': '@docTutorialReset' }, template: '

    \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' + '
    \n' + '

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

    ' }; });
    X Tutup