Angular Material Side Nav
home
Run
screen_rotation
fullscreen
cloud_download
<html lang="en" > <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-material/1.1.1/angular-material.min.css"> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-aria.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-messages.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-material/1.1.1/angular-material.min.js"></script> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic"> <script language="javascript"> angular .module('myApp', ['ngMaterial']) .controller('MyController', function ($scope, $mdSidenav) { $scope.openLeftNav = function() { $mdSidenav('left').toggle(); }; }); </script> </head> <body ng-app="myApp"> <div ng-controller="MyController as ctrl" ng-cloak="" > <md-content layout-padding style="height: 800px;"> <md-sidenav md-component-id="left" class="md-sidenav-left"> <md-list> <md-list-item> <div>Item 1</div> </md-list-item> <md-list-item> <div>Item 2</div> </md-list-item> <md-list-item> <div>Item 3</div> </md-list-item> <md-list-item> <div>Item 4</div> </md-list-item> </md-list> </md-sidenav> <md-content class="height:100%;"> <md-button ng-click="openLeftNav()"> Click to Open Left Menu </md-button> </md-content> </div> </body> </html>
<html lang="en" > <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-material/1.1.1/angular-material.min.css"> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-aria.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-messages.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-material/1.1.1/angular-material.min.js"></script> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic"> <script language="javascript"> angular .module('myApp', ['ngMaterial']) .controller('MyController', function ($scope, $mdSidenav) { $scope.openLeftNav = function() { $mdSidenav('left').toggle(); }; }); </script> </head> <body ng-app="myApp"> <div ng-controller="MyController as ctrl" ng-cloak="" > <md-content layout-padding style="height: 800px;"> <md-sidenav md-component-id="left" class="md-sidenav-left"> <md-list> <md-list-item> <div>Item 1</div> </md-list-item> <md-list-item> <div>Item 2</div> </md-list-item> <md-list-item> <div>Item 3</div> </md-list-item> <md-list-item> <div>Item 4</div> </md-list-item> </md-list> </md-sidenav> <md-content class="height:100%;"> <md-button ng-click="openLeftNav()"> Click to Open Left Menu </md-button> </md-content> </div> </body> </html>
Copyrights@tutorialsplane.com