diff --git a/docs/site/components/subpage/subpage-directive.js b/docs/site/components/subpage/subpage-directive.js index 9951be9b6ce..4c6331fc6fc 100644 --- a/docs/site/components/subpage/subpage-directive.js +++ b/docs/site/components/subpage/subpage-directive.js @@ -1,6 +1,6 @@ angular .module('gcloud.subpage', ['gcloud.header']) - .directive('subpage', function($parse, $location) { + .directive('subpage', function($location, getLinks) { 'use strict'; return { @@ -8,7 +8,7 @@ angular templateUrl: 'site/components/subpage/subpage.html', link: function($scope, elem, attrs) { $scope.title = attrs.title; - $scope.links = $parse(attrs.links)(); + $scope.links = getLinks('master'); $scope.headerTemplateUrl = attrs.headerTemplateurl; if (attrs.isActiveUrl) { diff --git a/docs/site/components/subpage/subpage.html b/docs/site/components/subpage/subpage.html index 745fff9243d..c92feff0c64 100644 --- a/docs/site/components/subpage/subpage.html +++ b/docs/site/components/subpage/subpage.html @@ -51,11 +51,6 @@