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

28 lines (25 loc) 758 B
(function () { 'use strict'; angular .module('tabsDemoIconTabs', ['ngMaterial'] ) .config(function($mdIconProvider) { $mdIconProvider .iconSet('communication', 'img/icons/sets/communication-icons.svg') .icon('favorite', 'img/icons/favorite.svg'); }) .controller('AppCtrl', AppCtrl); function AppCtrl ( $scope ) { $scope.data = { selectedIndex: 0, secondLocked: true, secondLabel: "Item Two", bottom: false }; $scope.next = function() { $scope.data.selectedIndex = Math.min($scope.data.selectedIndex + 1, 2) ; }; $scope.previous = function() { $scope.data.selectedIndex = Math.max($scope.data.selectedIndex - 1, 0); }; } })();