Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Angular coding challenge
- 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:
- ```
- <todo-list initial-todos='["Buy milk", "Paint fence"]'></todo-list>
- ```
- Requirements:
- * Supports optional `initial-todos` attribute that is used to initialize todos.
- * Display todos in a list. In addition to todo name, each item has a checkbox.
- * Ability to add todos: Input field with `Add` button that adds new todo to list
- * Ability to remove todos: `Remove selected` button that removes checked items from list
- * UI shall always display current list
- * Persist todos in Browsers `localStorage`. Reloading page shall initialize todos from `localStorage`
- * Bonus: Write in coffee script
- * Bonus: Make it look "nice"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement