This example uses <md-chips>
and <md-chip>
.
NOTE: Static chips cannot be selected, removed or edited, and are not part of any model.
If no ng-model
is provided, there are no input elements in <md-chips>
.
index.html:
<md-content ng-controller="ChipController">
<md-chips>
<md-chip>Test</md-chip>
<md-chip>Another chip</md-chip>
<md-chip>{{chip}}</md-chip>
</md-chips>
app.js:
var app = angular.module('SomeApp', [/* Your dependencies here */ 'ngMaterial'])
app.controller('ChipController', function($scope) {
$scope.chip = "$scope";
})