all files / app/main/components/material-docs/demo-partials/slider/demoBasicUsage/ script.js

9.09% Statements 1/11
100% Branches 0/0
0% Functions 0/2
9.09% Lines 1/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27                                                   
 
angular.module('sliderDemo1', ['ngMaterial'])
  .config(function($mdIconProvider) {
    $mdIconProvider
      .iconSet('device', 'assets/angular-material-assets/img/icons/sets/device-icons.svg', 24);
  })
.controller('AppCtrl', function($scope) {
 
  $scope.color = {
    red: Math.floor(Math.random() * 255),
    green: Math.floor(Math.random() * 255),
    blue: Math.floor(Math.random() * 255)
  };
 
  $scope.rating1 = 3;
  $scope.rating2 = 2;
  $scope.rating3 = 4;
 
  $scope.disabled1 = Math.floor(Math.random() * 100);
  $scope.disabled2 = 0;
  $scope.disabled3 = 70;
 
  $scope.invert = Math.floor(Math.random() * 100);
 
  $scope.isDisabled = true;
});