This test is designed to see if the developer understand the following in Javascript: Scoping/context, Hoisting, Runtime, Mutation, Debounce
- Solve Errors and add the Features in the list below.
- Do not modify api timeout's, they simulate the server lag
- Hosting: app is not defined
- Run Time: Cannot read property 'length' of undefined
- Scope/Context: Cannot read property 'length' of undefined. Fix the api so that it uses
this.data
for theresolve
instead of usingapi.data
. Also, clean the api calls so they all usethis.data
instead ofapi.data
. - Definition: In the UI, the list displays an undefined, fix it
- Add Feature:
App.add()
is incomplete, it's been hooked up to the UI already but currently doesn't add to the api. - Toggle Feature: Have
App.toggle()
toggle the state of the selected item. It's already hooked up in the UI. - Mutation: Fix the search input field. Type in
feed
. The filter is currently displaying the wrong items. Also, when you click on theAll
filter it doesn't display all items. - Search Feature: fix the filters for
Active
andComplete
to only show todo's based on if it's done or not.