mirror of
https://github.com/angular/angular.git
synced 2026-11-30 02:18:49 -05:00
BREAKING CHANGE: Previously, `Directive` was the abstract base class of several directives. Now, `Directive` is the former `Decorator`, and `Component` inherits from it.
13 lines
180 B
JavaScript
13 lines
180 B
JavaScript
import {Directive} from 'angular2/angular2';
|
|
|
|
@Directive({
|
|
selector: '[md-theme]'
|
|
})
|
|
export class MdTheme {
|
|
color: string;
|
|
|
|
constructor() {
|
|
this.color = 'sky-blue'
|
|
}
|
|
}
|