This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 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 ) ;
Original file line number Diff line number Diff line change 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; ">
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments