angular-material-npfixed
Version:
The Angular Material project is an implementation of Material Design in Angular.js. This project provides a set of reusable, well-tested, and accessible Material Design UI components. Angular Material is supported internally at Google by the Angular.js, M
18 lines (15 loc) • 573 B
JavaScript
(function () {
'use strict';
angular
.module('chipsCustomSeparatorDemo', ['ngMaterial'])
.controller('CustomSeparatorCtrl', DemoCtrl);
function DemoCtrl ($mdConstant) {
// Use common key codes found in $mdConstant.KEY_CODE...
this.keys = [$mdConstant.KEY_CODE.ENTER, $mdConstant.KEY_CODE.COMMA];
this.tags = [];
// Any key code can be used to create a custom separator
var semicolon = 186;
this.customKeys = [$mdConstant.KEY_CODE.ENTER, $mdConstant.KEY_CODE.COMMA, semicolon];
this.contacts = ['test@example.com'];
}
})();