@Component Decorator
@Component({
// Backbone view options
el?: any,
events?: Backbone.EventsHash,
id?: string,
className?: string,
tagName?: string,
// ngBackbone @Component options
template: string; // string that compiles to the template
models?: Models | {}; // a map of all models that we bind to template scope
collections?: Collections | {}; // a map of all collections that we bind to template scope
views?: Views; // constructors for nested views
formValidators?: { [key: string]: Function; } | FormValidators; //
});
@Component
injects the specified properties into the View.prototype
.