/** * Created by griga on 12/26/16. */ export function FadeInLeft() { const __ref__ = window['Reflect']; function parseMeta(metaInformation) { for (let _i = 0, metaInformation_1 = metaInformation; _i < metaInformation_1.length; _i++) { const metadata = metaInformation_1[_i]; // metadata is @Component metadata // metadata.animations = [fadeInLeft()]; // metadata.host = {'[@fadeInLeft]': ''}; // your logic here // mine was metadata.styles = [builtStyles] } } // value represents the annotation parameter(s) return (target) => { const metaInformation = __ref__.getOwnMetadata('annotations', target); if (metaInformation) { parseMeta(metaInformation); } }; }