You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a sequel to #7, we can also provide decorators:
importrouteTaskfrom'ember-route-task-helper/utils/route-task-decorator';importcurryfrom'ember-route-task-helper/utils/curry-decorator';exportdefaultclassextendsComponent{
@routeTasktaskName;// name is determined via key reflection
@routeTask('fooTask')otherTask;// name is explicitly provided// Since `@routeTask` already takes an optional name,// currying is performed using an extra decorator.
@curry('Freddie','Morecurry')
@routeTask('barTask')curriedTask;// Alternatively task could be curried via the descriptor value,// but I don't think that is really explicit or easy to understand.
@routeTask('barTask')curriedTask=['Freddie','Morecurry'];}
Also, the @curry decorator can be re-used with regular tasks. 🙌
The text was updated successfully, but these errors were encountered:
As a sequel to #7, we can also provide decorators:
Also, the
@curry
decorator can be re-used with regular tasks. 🙌The text was updated successfully, but these errors were encountered: