Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 0721699

Browse files
Splaktarjelbourn
authored andcommitted
docs(menu): fix broken link to spec (#11369)
Fixes #9959
1 parent f8f13a8 commit 0721699

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/components/menu/demoMenuPositionModes/script.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ angular
88
.controller('PositionDemoCtrl', function DemoCtrl($mdDialog) {
99
var originatorEv;
1010

11-
this.menuHref = "http://www.google.com/design/spec/components/menus.html#menus-specs";
12-
1311
this.openMenu = function($mdMenu, ev) {
1412
originatorEv = ev;
1513
$mdMenu.open(ev);

src/components/menu/demoMenuWidth/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h2 class="md-title">Different Widths</h2>
55
<p>
66
<code>md-menu-content</code> may specify a <code>width</code> attribute which will follow
7-
the <a href="ctrl.menuHref" class="md-accent">official spec</a>.
7+
the <a ng-href="{{ctrl.menuHref}}" class="md-accent" target="_blank">official spec</a>.
88
</p>
99
</div>
1010
<div class="menus" layout-wrap layout="row" layout-fill layout-align="space-between center" style="min-height:100px;">

src/components/menu/demoMenuWidth/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ angular.module('menuDemoWidth', ['ngMaterial']).config(function($mdIconProvider)
33
.iconSet("call", 'img/icons/sets/communication-icons.svg', 24)
44
.iconSet("social", 'img/icons/sets/social-icons.svg', 24);
55
}).controller('WidthDemoCtrl', function($mdDialog) {
6-
var vm = this;
6+
var ctrl = this;
7+
ctrl.menuHref = "https://material.io/design/components/menus.html#specs";
78

89
this.announceClick = function(index) {
910
$mdDialog.show(

0 commit comments

Comments
 (0)