aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/docs.js
diff options
context:
space:
mode:
authorIgor Minar2012-04-02 08:32:30 -0700
committerIgor Minar2012-04-04 15:59:18 -0700
commit53b2254ea70019937463d8e079e1991b3d3d1d8b (patch)
treefa93b6b6b9e5dc559a1253179791b9edca7f83ad /docs/src/templates/docs.js
parent6336b6e89e3a80aec3c4367ab4c2737fd365c030 (diff)
downloadangular.js-53b2254ea70019937463d8e079e1991b3d3d1d8b.tar.bz2
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
Diffstat (limited to 'docs/src/templates/docs.js')
-rw-r--r--docs/src/templates/docs.js8
1 files changed, 4 insertions, 4 deletions
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);
};