Hi Elias,
thanks for your suggestion. Your right, it seems the logic way.
Output(target, name);
But it seems like you can not call the decorator function Output() directly.
I get error-messages:
IDE says: "Invalid number of argument, expected 0...1"
compiler says: " error TS2346: Supplied parameters do not match any
signature of call target. "
Maybe cause its part of an DecoratorFactory?
So I still stuck with:
// create @Output decorator for the emitter
Reflect["decorate"]([
Output()
], target, name + "Change");
Regards,
Jan
Am Freitag, 6. Mai 2016 08:36:54 UTC+2 schrieb Sander Elias:
>
> Hi Jan,
>
> As you are already in a decorator, do you really need the call to
> reflect.decorate at all?
> I would have gone for:
>
> output(target, name+'Change')
>
> But as I'm not that experienced with NG2, that might be a shortcut that
> has unexpected features ;)
>
> Regards
> Sander
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.