chore(material): clean up old workarounds with new features.
This commit is contained in:
@ -1,7 +0,0 @@
|
||||
// TODO: switch to proper enums when we support them.
|
||||
|
||||
// Key codes
|
||||
export const KEY_ESC = 27;
|
||||
export const KEY_SPACE = 32;
|
||||
export const KEY_UP = 38;
|
||||
export const KEY_DOWN = 40;
|
10
modules/angular2_material/src/core/key_codes.ts
Normal file
10
modules/angular2_material/src/core/key_codes.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import {CONST} from 'angular2/src/facade/lang';
|
||||
|
||||
// Can't use an enum because Dart doesn't support enum initializers.
|
||||
@CONST()
|
||||
export class KeyCodes {
|
||||
@CONST() static ESCAPE = 27;
|
||||
@CONST() static SPACE = 32;
|
||||
@CONST() static UP = 38;
|
||||
@CONST() static DOWN = 40;
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
import {Directive} from 'angular2/angular2';
|
||||
|
||||
@Directive({selector: '[md-theme]'})
|
||||
export class MdTheme {
|
||||
color: string;
|
||||
|
||||
constructor() {
|
||||
this.color = 'sky-blue'
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user