Created
November 11, 2014 14:29
-
-
Save bettysteger/976aca18390315f8c26f to your computer and use it in GitHub Desktop.
Declarative Metadata (Angular 2.0 directive)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AtScript | |
@Directive({ | |
selector: '[blink]' | |
}) | |
class Blink { | |
constructor(elment:Element, options:Options, timeout:Timeout) {} | |
} | |
// ES6 | |
class Blink { | |
constructor(elment, options, timeout) {} | |
} | |
Blink.annotations = [new Directive({selector: '[blink]'})]; | |
Blink.parameters = [Element, Options, Timeout]; | |
// ES5 | |
function Blink(elment, options, timeout) {} | |
Blink.annotations = [new Directive({selector: '[blink]'})]; | |
Blink.parameters = [Element, Options, Timeout]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment