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 8
8
. controller ( 'PositionDemoCtrl' , function DemoCtrl ( $mdDialog ) {
9
9
var originatorEv ;
10
10
11
- this . menuHref = "http://www.google.com/design/spec/components/menus.html#menus-specs" ;
12
-
13
11
this . openMenu = function ( $mdMenu , ev ) {
14
12
originatorEv = ev ;
15
13
$mdMenu . open ( ev ) ;
Original file line number Diff line number Diff line change 4
4
< h2 class ="md-title "> Different Widths</ h2 >
5
5
< p >
6
6
< 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 > .
8
8
</ p >
9
9
</ div >
10
10
< 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)
3
3
. iconSet ( "call" , 'img/icons/sets/communication-icons.svg' , 24 )
4
4
. iconSet ( "social" , 'img/icons/sets/social-icons.svg' , 24 ) ;
5
5
} ) . controller ( 'WidthDemoCtrl' , function ( $mdDialog ) {
6
- var vm = this ;
6
+ var ctrl = this ;
7
+ ctrl . menuHref = "https://material.io/design/components/menus.html#specs" ;
7
8
8
9
this . announceClick = function ( index ) {
9
10
$mdDialog . show (
You can’t perform that action at this time.
0 commit comments