Guest User

Untitled

a guest
Mar 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. class NotesComponent implements ComponentReady {
  2. public noteViews: INoteView[];
  3.  
  4. constructor(
  5. private notesService: NotesService
  6. ) {}
  7.  
  8. public onComponentReady(): void {
  9. const notes: INote[] = this.notesService.getNotes();
  10. this.noteViews: INoteView[] = notes.map((note) => ({
  11. note,
  12. viewAttributes: { isSelected: false }
  13. }));
  14. }
  15. }
Add Comment
Please, Sign In to add comment