Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. ## Angular coding challenge
  2.  
  3. Write an Angular directive that wraps a simple todo list in a single tag that can be dropped in an Angular app HTML page, for example like:
  4.  
  5. ```
  6. <todo-list initial-todos='["Buy milk", "Paint fence"]'></todo-list>
  7. ```
  8.  
  9. Requirements:
  10.  
  11. * Supports optional `initial-todos` attribute that is used to initialize todos.
  12. * Display todos in a list. In addition to todo name, each item has a checkbox.
  13. * Ability to add todos: Input field with `Add` button that adds new todo to list
  14. * Ability to remove todos: `Remove selected` button that removes checked items from list
  15. * UI shall always display current list
  16. * Persist todos in Browsers `localStorage`. Reloading page shall initialize todos from `localStorage`
  17. * Bonus: Write in coffee script
  18. * Bonus: Make it look "nice"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement