diff --git a/public/docs/dart/latest/guide/cheatsheet.jade b/public/docs/dart/latest/guide/cheatsheet.jade index 82ee894512..ea9bd4bae5 100644 --- a/public/docs/dart/latest/guide/cheatsheet.jade +++ b/public/docs/dart/latest/guide/cheatsheet.jade @@ -3,6 +3,4 @@ article(class="l-content-small grid-fluid docs-content") .cheatsheet - h2 Angular for Dart Cheat Sheet (v2.0.0-alpha.54) - br ngio-cheatsheet(src='./cheatsheet.json') diff --git a/public/docs/js/latest/guide/cheatsheet.jade b/public/docs/js/latest/guide/cheatsheet.jade index 1a8bfeff93..ea9bd4bae5 100644 --- a/public/docs/js/latest/guide/cheatsheet.jade +++ b/public/docs/js/latest/guide/cheatsheet.jade @@ -3,6 +3,4 @@ article(class="l-content-small grid-fluid docs-content") .cheatsheet - h2 Angular for JavaScript Cheat Sheet (v2.0.0-alpha.54) - br ngio-cheatsheet(src='./cheatsheet.json') diff --git a/public/docs/ts/latest/guide/cheatsheet.jade b/public/docs/ts/latest/guide/cheatsheet.jade index 0471d249fa..ea9bd4bae5 100644 --- a/public/docs/ts/latest/guide/cheatsheet.jade +++ b/public/docs/ts/latest/guide/cheatsheet.jade @@ -3,7 +3,4 @@ article(class="l-content-small grid-fluid docs-content") .cheatsheet - h2 Angular for TypeScript Cheat Sheet (v2.0.0-alpha.54) - br - ngio-cheatsheet(src='./cheatsheet.json') diff --git a/public/resources/js/directives/cheatsheet.js b/public/resources/js/directives/cheatsheet.js index c0c7ce3725..6b2ba9d9fe 100644 --- a/public/resources/js/directives/cheatsheet.js +++ b/public/resources/js/directives/cheatsheet.js @@ -4,13 +4,17 @@ angularIO.directive('ngioCheatsheet', function() { controller: function($http, $attrs, $sce) { var $ctrl = this; $http.get($attrs.src).then(function(response) { - $ctrl.sections = response.data; + $ctrl.currentEnvironment = response.data.currentEnvironment; + $ctrl.version = response.data.version; + $ctrl.sections = response.data.sections; }); $ctrl.getSafeHtml = function(html) { return $sce.trustAsHtml(html); }; }, template: + '