Angular Material Chips
home
Run
screen_rotation
fullscreen
cloud_download
navigate_next
<html lang="en" > <head> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/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="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js"></script> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <script language="javascript"> angular .module('myApp', ['ngMaterial']) .controller('myController', chipCtr); function chipCtr ($scope) { var self = this; self.readonly = false; //fruits list Variable object self.fruitNames = ['Apple', 'Banana', 'Mango']; self.roFruitNames = angular.copy(self.fruitNames); self.tags = []; } </script> </head> <body ng-app="myApp"> <div ng-controller="myController as ctrl" layout="column" ng-cloak> <md-content> <section layout="row" layout-sm="column" layout-align="center center" layout-wrap> <h2 class="md-title">Use the default chip template.</h2> <md-chips ng-model="ctrl.fruitNames" readonly="ctrl.readonly" md-removable="ctrl.removable"></md-chips> </section> </md-content> </div> </body> </html>
<html lang="en" > <head> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/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="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js"></script> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <script language="javascript"> angular .module('myApp', ['ngMaterial']) .controller('myController', chipCtr); function chipCtr ($scope) { var self = this; self.readonly = false; //fruits list Variable object self.fruitNames = ['Apple', 'Banana', 'Mango']; self.roFruitNames = angular.copy(self.fruitNames); self.tags = []; } </script> </head> <body ng-app="myApp"> <div ng-controller="myController as ctrl" layout="column" ng-cloak> <md-content> <section layout="row" layout-sm="column" layout-align="center center" layout-wrap> <h2 class="md-title">Use the default chip template.</h2> <md-chips ng-model="ctrl.fruitNames" readonly="ctrl.readonly" md-removable="ctrl.removable"></md-chips> </section> </md-content> </div> </body> </html>
Copyrights@tutorialsplane.com