Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NotesComponent implements ComponentReady {
- public noteViews: INoteView[];
- constructor(
- private notesService: NotesService
- ) {}
- public onComponentReady(): void {
- const notes: INote[] = this.notesService.getNotes();
- this.noteViews: INoteView[] = notes.map((note) => ({
- note,
- viewAttributes: { isSelected: false }
- }));
- }
- }
Add Comment
Please, Sign In to add comment