diff --git a/docs/site/components/language-switcher/language-switcher-directive.js b/docs/site/components/language-switcher/language-switcher-directive.js index 0b2a3d68b7c..3a704d8dda9 100644 --- a/docs/site/components/language-switcher/language-switcher-directive.js +++ b/docs/site/components/language-switcher/language-switcher-directive.js @@ -1,13 +1,14 @@ angular .module('gcloud.language-switcher', []) - .directive('languageSwitcher', function() { + .directive('languageSwitcher', function($parse) { 'use strict'; return { templateUrl: 'site/components/language-switcher/language-switcher.html', transclude: true, - controller: function($scope) { + link: function($scope, elem, attrs) { + $scope.extraLinks = $parse(attrs.extraLinks)($scope); $scope.showNavDropdown = false; } }; diff --git a/docs/site/components/language-switcher/language-switcher.html b/docs/site/components/language-switcher/language-switcher.html index f20fd90b448..9dfb1238312 100644 --- a/docs/site/components/language-switcher/language-switcher.html +++ b/docs/site/components/language-switcher/language-switcher.html @@ -1,6 +1,78 @@