/** Add Transpiler for Typescript */
System.config({
  transpiler: 'typescript',
  typescriptOptions: {
    emitDecoratorMetadata: true
  },
  packages: {
    '.': {
      defaultExtension: 'ts'
    },
    'vendor': {
      defaultExtension: 'js'
    }
  }
});

System.config({
  map: {
    'main': 'main.js',

    // Angular specific mappings.
    '@angular/core': 'https://unpkg.com/@angular/core/bundles/core.umd.js',
    '@angular/animations': 'https://unpkg.com/@angular/animations/bundles/animations.umd.js',
    '@angular/common': 'https://unpkg.com/@angular/common/bundles/common.umd.js',
    '@angular/compiler': 'https://unpkg.com/@angular/compiler/bundles/compiler.umd.js',
    '@angular/http': 'https://unpkg.com/@angular/http/bundles/http.umd.js',
    '@angular/forms': 'https://unpkg.com/@angular/forms/bundles/forms.umd.js',
    '@angular/router': 'https://unpkg.com/@angular/router/bundles/router.umd.js',
    '@angular/platform-browser': 'https://unpkg.com/@angular/platform-browser/bundles/platform-browser.umd.js',
    '@angular/platform-browser-dynamic': 'https://unpkg.com/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
    '@angular/animations/browser': 'https://unpkg.com/@angular/animations/bundles/animations-browser.umd.js',
    '@angular/platform-browser/animations': 'https://unpkg.com/@angular/platform-browser/bundles/platform-browser-animations.umd.js',
    '@angular/material': 'https://unpkg.com/@angular/material/bundles/material.umd.js',

    // Rxjs mapping
    'rxjs': 'https://unpkg.com/rxjs',
  },
  packages: {
    // Thirdparty barrels.
    'rxjs': { main: 'index' },
  }
});
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {BrowserModule} from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {NgModule} from '@angular/core';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MaterialModule} from '@angular/material';
import {MenuOverviewExample} from './menu-overview-example';

@NgModule({

  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    FormsModule,
    ReactiveFormsModule,
    MaterialModule,
  ],

  declarations: [MenuOverviewExample],
  bootstrap: [MenuOverviewExample],
  providers: []
})
export class PlunkerAppModule {}

platformBrowserDynamic().bootstrapModule(PlunkerAppModule);


/**  Copyright 2016 Google Inc. All Rights Reserved.
    Use of this source code is governed by an MIT-style license that
    can be found in the LICENSE file at http://angular.io/license */
import {Component} from '@angular/core';


@Component({
  selector: 'menu-overview-example',
  templateUrl: './menu-overview-example.html',
})
export class MenuOverviewExample {}


/**  Copyright 2016 Google Inc. All Rights Reserved.
    Use of this source code is governed by an MIT-style license that
    can be found in the LICENSE file at http://angular.io/license */
/** No CSS for this example */
<!DOCTYPE html>
<html>
<head>
  <title>Angular Material Plunker</title>

  <!-- Load common libraries -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/typescript/2.1.1/typescript.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/zone.js/0.8.5/zone.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.38/system.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min.js"></script>

  <!-- Configure SystemJS -->
  <script src="systemjs.config.js"></script>

  <script>
    System
      .import('main.ts')
      .catch(console.error.bind(console));
  </script>

  <!-- Load the Angular Material stylesheet -->
  <link href="https://unpkg.com/@angular/material/prebuilt-themes/indigo-pink.css" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <style>body { font-family: Roboto, Arial, sans-serif; }</style>
</head>

<body>
<menu-overview-example>Loading Material Docs example...</menu-overview-example>
</body>

</html>


<!-- Copyright 2016 Google Inc. All Rights Reserved.
    Use of this source code is governed by an MIT-style license that
    can be found in the LICENSE file at http://angular.io/license -->

<b> material.angular.io : Multi level Menu, testing xPostition , yPosition,   [overlapTrigger]="false"</b>
  

<p>xPosition="after" not working </p>

<button md-button [mdMenuTriggerFor]="menu">Menu</button>

<p> with icons </p>

<button md-button [mdMenuTriggerFor]="menu11"><md-icon class="icon-20">home</md-icon>Menu</button>

<p> md-icon-button breaking ui. Use md-menu-item. Also if don't use md-menu-item it shows a regular gray button </p>
<button md-button [mdMenuTriggerFor]="menu2"><md-icon class="icon-20">save</md-icon>Select</button>

<!-- Menus -->



<md-menu #menu2="mdMenu" >  md-icon-button causing trouble. Use
  <button  md-icon-button [mdMenuTriggerFor]="menu11">
      <md-icon> voicemail </md-icon>
    <span> Check voicemail </span>
    </button>
   <button  (click)="sidenav1.toggle()">
      <md-icon> voicemail </md-icon>
    <span> Check voicemail </span>
    </button>
</md-menu>


<md-menu #menu11="mdMenu"   [overlapTrigger]="false"  xPosition="after"    >
  <button md-menu-item  ><md-icon class="icon-20">save</md-icon>love</button>
  <button md-menu-item>it</button> 
</md-menu>


<md-menu #menu="mdMenu"   xPosition="after"    yPosition="below" >
  <button md-menu-item [mdMenuTriggerFor]="menu1" >Item 1</button>
  <button md-menu-item>Item 2</button>
</md-menu>
<md-menu #menu1="mdMenu"  xPosition="after"    >
  <button md-menu-item  >love</button>
  <button md-menu-item>it</button>
</md-menu>




<!-- Copyright 2016 Google Inc. All Rights Reserved.
    Use of this source code is governed by an MIT-style license that
    can be found in the LICENSE file at http://angular.io/license -->