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

22 lines (17 loc) 562 B
angular.module('selectDemoOptionsAsync', ['ngMaterial']) .controller('SelectAsyncController', function($timeout, $scope) { $scope.user = null; $scope.users = null; $scope.loadUsers = function() { // Use timeout to simulate a 650ms request. return $timeout(function() { $scope.users = $scope.users || [ { id: 1, name: 'Scooby Doo' }, { id: 2, name: 'Shaggy Rodgers' }, { id: 3, name: 'Fred Jones' }, { id: 4, name: 'Daphne Blake' }, { id: 5, name: 'Velma Dinkley' } ]; }, 650); }; });