Skip to content

joppe/memory

Repository files navigation

Memory

I use this project to learn about Angular.

I used this tutorial to learn how to mix express and Angular.

TODO

  • debounce input
Observable
    .fromEvent(this.el.nativeElement, 'keyup')
    .map((event) => {
        return event.target.value;
    })
    .filter((text) => {
        return text.length > 1;
    })
    .debounceTime(250)
    .do(() => { // perform function but does not effect the stream
        this.loading.emit(true);
    })
    .map((query) => {
        this.youtube.search(query);
    })
    .switch() // ignore all event but the most recent
    .subscribe((results) => {
        // success
    }, () => {
        // error
    }, () => {
        // complete
    })

  • routing
    • home
    • config/search
    • game
  • structure
    • search
      • form
        • input
        • button
      • results
      • result
    • game
      • images
      • image
  • state (redux)
    • loading
  • localStorage
    • query
    • results
    • progress

Goal 28-12

  • basic routing
  • restructuring search

Goal 29-12

  • npm scripts to start front- and backend
  • enable sass
  • select/unselect an image