all files / app/main/components/material-docs/demo-partials/select/demoSelectedText/ script.js

14.29% Statements 1/7
0% Branches 0/2
0% Functions 0/2
14.29% Lines 1/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14                          
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";
        }
      };
    });