From 53b2254ea70019937463d8e079e1991b3d3d1d8b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 2 Apr 2012 08:32:30 -0700 Subject: docs(tutorial): update tutorial intro + steps 0-3 also contains all kinds of fixes that I had to make in the docs app to get the tutorial to render correctly --- docs/src/templates/docs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/src/templates/docs.js') diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js index 9d91c233..b82ba660 100644 --- a/docs/src/templates/docs.js +++ b/docs/src/templates/docs.js @@ -133,14 +133,14 @@ SyntaxHighlighter['defaults'].gutter = true; * @param $cookieStore * @constructor */ -function TutorialInstructionsCtrl($cookieStore) { - this.selected = $cookieStore.get('selEnv') || 'git-mac'; +function TutorialInstructionsCtrl($scope, $cookieStore) { + $scope.selected = $cookieStore.get('selEnv') || 'git-mac'; - this.currentCls = function(id, cls) { + $scope.currentCls = function(id, cls) { return this.selected == id ? cls || 'current' : ''; }; - this.select = function(id) { + $scope.select = function(id) { this.selected = id; $cookieStore.put('selEnv', id); }; -- cgit v1.2.3