With angular 2.0.0-beta.8 I've created a couple of custom decorator that extends the @Component decorator.
To make that I've used this code:
import {..., View } from 'angular2/core';
...
export var MyCustomComponent:ComponentFactory =
<ComponentFactory>makeDecorator(MyCustomComponentMetadata, (fn:any) => fn.View = View);
Now, with angular 2.0.0-beta.12, the 'View' decorator has been dropped so the import throw an error because 'angular2/core' has no exported member 'View'.
How I'm supposed to create a custom component decorator?
@Component()+@View()have become just@Component()Can't you just extend@Component()instead of@View()? - Günter ZöchbauerMyCustomComponentdecorator, I need to call the functionmakeDecoratorthat, as second argument, takes(fn:any) => fn.View = View. For this to compile, I need to importView. I don't want to extend the@View()decorator but only the@Component()decorator. - GigitsuComponentinstead, view ceased to exist. - Günter Zöchbauer