UNPKG

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

14 lines (13 loc) 440 B
angular .module('selectDemoSelectedText', ['ngMaterial']) .controller('SelectedTextController', function($scope) { $scope.items = [1, 2, 3, 4, 5, 6, 7]; $scope.selectedItem; $scope.getSelectedText = function() { if ($scope.selectedItem !== undefined) { return "You have selected: Item " + $scope.selectedItem; } else { return "Please select an item"; } }; });