angular-cn/public/resources/js/site.js

28 lines
967 B
JavaScript
Raw Normal View History

2015-03-01 09:42:31 -05:00
var angularIO = angular.module('angularIOApp', ['ngMaterial'])
2015-02-24 09:38:30 -05:00
.config(function($mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryPalette('blue', {
'default': '700', // by default use shade 400 from the pink palette for primary intentions
'hue-1': '100', // use shade 100 for the <code>md-hue-1</code> class
'hue-2': '600', // use shade 600 for the <code>md-hue-2</code> class
'hue-3': 'A100' // use shade A100 for the <code>md-hue-3</code> class
})
// If you specify less than all of the keys, it will inherit from the
// default shades
.accentPalette('purple', {
'default': '200' // use shade 200 for default, and keep all other shades the same
});
});
2015-02-19 12:51:07 -05:00
2015-03-01 09:42:31 -05:00
angularIO.controller('AppCtrl', ['$scope', '$mdSidenav', function($scope, $mdSidenav){
2015-02-19 12:51:07 -05:00
$scope.toggleSidenav = function(menuId) {
$mdSidenav(menuId).toggle();
};
2015-03-01 09:42:31 -05:00
$scope.showVersionMenu = function() {
alert('hi');
};
2015-02-24 09:38:30 -05:00
}]);