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
32 lines (30 loc) • 750 B
JavaScript
angular.module('colorsDemo', ['ngMaterial'])
.config(function ($mdThemingProvider, $mdIconProvider) {
$mdThemingProvider.theme('forest')
.primaryPalette('brown')
.accentPalette('green');
$mdIconProvider
.defaultIconSet('img/icons/sets/social-icons.svg', 24);
})
.directive('regularCard', function () {
return {
restrict: 'E',
templateUrl: 'regularCard.tmpl.html',
scope: {
name: '@',
}
}
})
.directive('userCard', function () {
return {
restrict: 'E',
templateUrl: 'userCard.tmpl.html',
scope: {
name: '@',
theme: '@'
},
controller: function ($scope) {
$scope.theme = $scope.theme || 'default';
}
}
});