Ich habe meine Bewerbung von angular2 RC5 RC6 nur aktualisiert, und ich habe immer noch Fehler bei den SelektorenUpgrade-Anwendung Angular2 RC6
diese Konsole ist
> Unhandled Promise rejection:
>
> Template parse errors: 'time-filter' is not a known element:
> 1. If 'time-filter' is an Angular component, then verify that it is part of this module.
> 2. If 'time-filter' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component
> to suppress this message. ("<div> [ERROR
> ->]<time-filter></time-filter>
und das ist mein Komponentencode:
@Component({
selector: 'time-filter',
templateUrl: '../app/shared/time-filter/time-filter.html',
providers: [TimeService]
})
export class TimeFilter implements OnInit
{..}
und das ist, wie ich es nennen
import { Component, NgModule,SchemaMetadata } from '@angular/core';
import {TimeFilter} from '../shared/time-filter/time-filter.component';
@Component({
template: `<div>
<time-filter></time-filter>
</div>
`
})
@NgModule({
declarations: [TimeFilter]
})
danke Sanket funktioniert es gut für mich ... Sie sind ein Lebensretter –